mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-12-18 00:11:06 +00:00
GMQCC_WARN macro
This commit is contained in:
parent
4b6659bfe1
commit
348243ddf6
1 changed files with 11 additions and 0 deletions
11
gmqcc.h
11
gmqcc.h
|
@ -58,6 +58,17 @@
|
||||||
# endif
|
# endif
|
||||||
# endif /* !__cplusplus */
|
# endif /* !__cplusplus */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Of some functions which are generated we want to make sure
|
||||||
|
* that the result isn't ignored. To find such function calls,
|
||||||
|
* we use this macro.
|
||||||
|
*/
|
||||||
|
#if defined(__GNUC__) || defined(__CLANG__)
|
||||||
|
# define GMQCC_WARN __attribute__((warn_unused_result))
|
||||||
|
#else
|
||||||
|
# define GMQCC_WARN
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* stdint.h and inttypes.h -less subset
|
* stdint.h and inttypes.h -less subset
|
||||||
* for systems that don't have it, which we must
|
* for systems that don't have it, which we must
|
||||||
|
|
Loading…
Reference in a new issue