mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-18 22:31:36 +00:00
close #76 implemented -Werror-some-warning section [errors] for the ini system.
This commit is contained in:
parent
54c8801bec
commit
a395a20dba
1 changed files with 9 additions and 0 deletions
9
opts.c
9
opts.c
|
@ -276,6 +276,15 @@ static char *opts_ini_load(const char *section, const char *name, const char *va
|
|||
}
|
||||
#include "opts.def"
|
||||
|
||||
/* Werror-individuals */
|
||||
#define GMQCC_TYPE_WARNS
|
||||
#define GMQCC_DEFINE_FLAG(X) \
|
||||
if (!strcmp(section, "errors") && !strcmp(name, #X)) { \
|
||||
opts_set(opts.werror, WARN_##X, opts_ini_bool(value)); \
|
||||
found = true; \
|
||||
}
|
||||
#include "opts.def"
|
||||
|
||||
/* optimizations */
|
||||
#define GMQCC_TYPE_OPTIMIZATIONS
|
||||
#define GMQCC_DEFINE_FLAG(X,Y) \
|
||||
|
|
Loading…
Reference in a new issue