From 7efc3a4c2148338d9e0dac7e79a680f9219f15cd Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Sat, 22 Dec 2012 16:50:09 +0100 Subject: [PATCH] Error when using both -ffalse-empty-strings and -ftrue-empty-strings --- main.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.39.2