Skip to content

Commit

Permalink
Expand QINLINE to inline on Linux (and kFreeBSD)
Browse files Browse the repository at this point in the history
This suppresses a lot of compiler warnings about GLimp_LogComment
being unused: gcc warns if a static function is unused, but does not
warn about static inline functions.
  • Loading branch information
smcv committed Feb 8, 2015
1 parent 4a09de6 commit be9f7a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/qcommon/q_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
#ifdef __clang__
#define QINLINE static inline
#else
#define QINLINE /*inline*/
#define QINLINE inline
#endif

#define PATH_SEP '/'
Expand Down
2 changes: 1 addition & 1 deletion codemp/qcommon/q_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
#ifdef __clang__
#define QINLINE static inline
#else
#define QINLINE /*inline*/
#define QINLINE inline
#endif

#define PATH_SEP '/'
Expand Down

0 comments on commit be9f7a1

Please sign in to comment.