mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-31 20:10:35 +00:00
It is used, gcc is a liar.
This commit is contained in:
parent
98fd5cd429
commit
44c87bedfc
1 changed files with 3 additions and 1 deletions
4
gmqcc.h
4
gmqcc.h
|
@ -102,8 +102,10 @@ GMQCC_IND_STRING(GMQCC_VERSION_PATCH) \
|
|||
*/
|
||||
#if defined(__GNUC__) || defined(__CLANG__)
|
||||
# define GMQCC_WARN __attribute__((warn_unused_result))
|
||||
# define GMQCC_USED __attribute__((used))
|
||||
#else
|
||||
# define GMQCC_WARN
|
||||
# define GMQCC_USED
|
||||
#endif
|
||||
/*
|
||||
* This is a hack to silent clang regarding empty
|
||||
|
@ -1133,7 +1135,7 @@ enum {
|
|||
};
|
||||
|
||||
|
||||
static const char *opts_options_descriptions[] = {
|
||||
GMQCC_USED static const char *opts_options_descriptions[] = {
|
||||
# define GMQCC_TYPE_OPTIONS
|
||||
# define GMQCC_DEFINE_FLAG(X, Y) Y,
|
||||
# include "opts.def"
|
||||
|
|
Loading…
Reference in a new issue