X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=opts.c;h=35f71146629900d249fe4fb4488ee53665ddcc16;hp=269a69d0dc813bfec4b5a07c0e07651aefd37ee9;hb=921877e8a4d7b5221762490d3f6e3b3666e4381b;hpb=b42328dbc66c1c4337d963240830acb5429c92df diff --git a/opts.c b/opts.c index 269a69d..35f7114 100644 --- a/opts.c +++ b/opts.c @@ -54,11 +54,16 @@ static void opts_setdefault() { opts_set(opts.warn, WARN_UNREACHABLE_CODE, true); opts_set(opts.warn, WARN_CPP, true); opts_set(opts.warn, WARN_UNKNOWN_ATTRIBUTE, true); + opts_set(opts.warn, WARN_RESERVED_NAMES, true); + opts_set(opts.warn, WARN_UNINITIALIZED_CONSTANT, true); + opts_set(opts.warn, WARN_UNINITIALIZED_GLOBAL, false); + opts_set(opts.warn, WARN_DEPRECATED, true); /* flags */ opts_set(opts.flags, ADJUST_VECTOR_FIELDS, true); opts_set(opts.flags, FTEPP, false); opts_set(opts.flags, FTEPP_PREDEFS, false); opts_set(opts.flags, CORRECT_TERNARY, true); + opts_set(opts.flags, BAIL_ON_WERROR, true); } void opts_init(const char *output, int standard, size_t arraysize) {