Skip to content

Commit

Permalink
Make inline functions conform to C99 semantics (#75)
Browse files Browse the repository at this point in the history
This fixes -O0/-O1 builds (e.g. for debugging) with clang39 or later
and gcc5 or later.

See http://clang.llvm.org/compatibility.html#inline for an explanation.
  • Loading branch information
lonkamikaze authored and Barbatos committed Apr 2, 2017
1 parent 284006b commit 11c7c93
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/botlib/be_aas_route.c
Expand Up @@ -106,7 +106,7 @@ void AAS_RoutingInfo(void)
// Returns: -
// Changes Globals: -
//===========================================================================
ID_INLINE int AAS_ClusterAreaNum(int cluster, int areanum)
static ID_INLINE int AAS_ClusterAreaNum(int cluster, int areanum)
{
int side, areacluster;

Expand Down Expand Up @@ -166,7 +166,7 @@ void AAS_InitTravelFlagFromType(void)
// Returns: -
// Changes Globals: -
//===========================================================================
ID_INLINE int AAS_TravelFlagForType_inline(int traveltype)
static ID_INLINE int AAS_TravelFlagForType_inline(int traveltype)
{
int tfl;

Expand Down Expand Up @@ -339,7 +339,7 @@ int AAS_EnableRoutingArea(int areanum, int enable)
// Returns: -
// Changes Globals: -
//===========================================================================
ID_INLINE float AAS_RoutingTime(void)
static ID_INLINE float AAS_RoutingTime(void)
{
return AAS_Time();
} //end of the function AAS_RoutingTime
Expand Down Expand Up @@ -379,7 +379,7 @@ int AAS_GetAreaContentsTravelFlags(int areanum)
// Returns: -
// Changes Globals: -
//===========================================================================
ID_INLINE int AAS_AreaContentsTravelFlags_inline(int areanum)
static ID_INLINE int AAS_AreaContentsTravelFlags_inline(int areanum)
{
return aasworld.areacontentstravelflags[areanum];
} //end of the function AAS_AreaContentsTravelFlags
Expand Down

0 comments on commit 11c7c93

Please sign in to comment.