From: Wolfgang Bumiller Date: Sat, 22 Dec 2012 15:50:09 +0000 (+0100) Subject: Error when using both -ffalse-empty-strings and -ftrue-empty-strings X-Git-Tag: 0.2~12^2~14 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7efc3a4c2148338d9e0dac7e79a680f9219f15cd;p=xonotic%2Fgmqcc.git Error when using both -ffalse-empty-strings and -ftrue-empty-strings --- diff --git a/main.c b/main.c index d6edd5c..558edc3 100644 --- a/main.c +++ b/main.c @@ -508,6 +508,11 @@ int main(int argc, char **argv) { return usage(); } + if (OPTS_FLAG(TRUE_EMPTY_STRINGS) && OPTS_FLAG(FALSE_EMPTY_STRINGS)) { + con_err("-ftrue-empty-strings and -ffalse-empty-strings are mutually exclusive"); + exit(1); + } + /* the standard decides which set of operators to use */ if (opts.standard == COMPILER_GMQCC) { operators = c_operators;