Thu, 14 Feb 2013 22:26:36 +0100
debug compile is now pedantic + fixed pointer comparison issue
gcc-debug.mk | file | annotate | diff | comparison | revisions | |
src/arguments.c | file | annotate | diff | comparison | revisions |
1.1 --- a/gcc-debug.mk Fri Dec 28 17:15:23 2012 +0100 1.2 +++ b/gcc-debug.mk Thu Feb 14 22:26:36 2013 +0100 1.3 @@ -27,5 +27,5 @@ 1.4 1.5 CC = gcc 1.6 LD = gcc 1.7 -CFLAGS = -Wall -std=gnu99 -O0 -ggdb 1.8 +CFLAGS = -Wall -Werror -pedantic -std=gnu99 -O0 -ggdb 1.9 LDFLAGS =
2.1 --- a/src/arguments.c Fri Dec 28 17:15:23 2012 +0100 2.2 +++ b/src/arguments.c Thu Feb 14 22:26:36 2013 +0100 2.3 @@ -39,7 +39,7 @@ 2.4 if (arg[0] == '-') { 2.5 if (arg[1] != '-') { 2.6 for (int t = 0 ; t < len ; t++) { 2.7 - ret |= (strchr(arg, expected[t]) > 0) << t; 2.8 + ret |= (strchr(arg, expected[t])?1:0) << t; 2.9 } 2.10 } 2.11 }