Skip to content

Commit

Permalink
Fix "C4013: 'function' undefined; assuming extern returning int" warn…
Browse files Browse the repository at this point in the history
…ings

#138
  • Loading branch information
SamVanheer committed Mar 15, 2022
1 parent f64f0c8 commit 37239ef
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
4 changes: 4 additions & 0 deletions utils/qbsp2/bsp5.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ typedef struct node_s

face_t *NewFaceFromFace (face_t *in);
void SplitFace (face_t *in, dplane_t *split, face_t **front, face_t **back);
void SplitFaceTmp(face_t* in, dplane_t* split, face_t** front, face_t** back);

//=============================================================================

Expand All @@ -117,6 +118,7 @@ void DivideFacet (face_t *in, dplane_t *split, face_t **front, face_t **back);
void CalcSurfaceInfo (surface_t *surf);
void SubdivideFace (face_t *f, face_t **prevptr);
node_t *SolidBSP (surfchain_t *surfhead);
int FaceSide(face_t* in, dplane_t* split);

//=============================================================================

Expand All @@ -143,6 +145,7 @@ void SubdivideFaces (surface_t *surfhead);
surfchain_t *GatherNodeFaces (node_t *headnode);

void MakeFaceEdges (node_t *headnode);
int GetEdge(vec3_t p1, vec3_t p2, face_t* f);

//=============================================================================

Expand All @@ -162,6 +165,7 @@ extern node_t outside_node; // portals outside the world face this
void AddPortalToNodes (portal_t *p, node_t *front, node_t *back);
void RemovePortalFromNode (portal_t *portal, node_t *l);
void MakeHeadnodePortals (node_t *node, vec3_t mins, vec3_t maxs);
void FreePortals(node_t* node);

void WritePortalfile (node_t *headnode);

Expand Down
16 changes: 15 additions & 1 deletion utils/qcsg/csg.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ void LoadMapFile (char *filename);

extern int nummiptex;
void WriteMiptex (void);
int TexinfoForBrushTexture (plane_t *plane, brush_texture_t *bt, vec3_t origin);
int FindMiptex(char* name);
int TexinfoForBrushTexture(plane_t* plane, brush_texture_t* bt, vec3_t origin);

//=============================================================================

Expand All @@ -125,6 +126,8 @@ int PlaneTypeForNormal (vec3_t normal);

void CreateBrush (int brushnum);

int BrushContents(brush_t* b);

//=============================================================================

// csg.c
Expand All @@ -142,3 +145,14 @@ extern qboolean drawflag;
void Draw_ClearWindow (void);
void DrawWinding (winding_t *w);

//=============================================================================

// map.c

void TextureAxisFromPlane(plane_t* pln, vec3_t xv, vec3_t yv);

//=============================================================================

// hullfile.c

void CheckHullFile(qboolean hullfile, char* filename);
1 change: 1 addition & 0 deletions utils/visx2/flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
****/

#include "vis.h"
#include "threads.h"

int c_fullskip;
int c_chains;
Expand Down

0 comments on commit 37239ef

Please sign in to comment.