From a395a20dbada6243328101540c989400d35b990c Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Mon, 7 Jan 2013 12:46:50 +0000 Subject: [PATCH] close #76 implemented -Werror-some-warning section [errors] for the ini system. --- opts.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/opts.c b/opts.c index 548381a..2c8fd16 100644 --- a/opts.c +++ b/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) \ -- 2.39.2