close #76 implemented -Werror-some-warning section [errors] for the ini system.

This commit is contained in:
Dale Weiler 2013-01-07 12:46:50 +00:00
parent 54c8801bec
commit a395a20dba

9
opts.c
View file

@ -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) \