Since the lack of this has caused portability issues in the past:

add "-ansi -pedantic" to the main Unix makefile, and clean up a few
minor problems pointed out thereby.

[originally from svn r8175]
This commit is contained in:
Simon Tatham
2008-09-13 18:25:19 +00:00
parent acf5c55d35
commit fe1b91ac49
6 changed files with 26 additions and 14 deletions

View File

@ -1108,7 +1108,7 @@ if (defined $makefiles{'gtk'}) {
"# to 1.2 if it isn't found.\n".
"GTK_CONFIG = sh -c 'pkg-config gtk+-2.0 \$\$0 2>/dev/null || gtk-config \$\$0'\n".
"\n".
&splitline("CFLAGS = -O2 -Wall -Werror -g " .
&splitline("CFLAGS = -O2 -Wall -Werror -ansi -pedantic -g " .
(join " ", map {"-I$dirpfx$_"} @srcdirs) .
" `\$(GTK_CONFIG) --cflags`")."\n".
"XLDFLAGS = `\$(GTK_CONFIG) --libs`\n".