From: Ian Jackson Date: Sun, 24 Sep 2017 13:28:04 +0000 (+0100) Subject: remove -pedantic X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=08927a3b285307a7f1dca250277e2ef8597180ea;p=sgt-puzzles.git remove -pedantic --- diff --git a/Makefile.gtk b/Makefile.gtk index e6a76d5..650a836 100644 --- a/Makefile.gtk +++ b/Makefile.gtk @@ -13,7 +13,7 @@ CC := $(TOOLPATH)$(CC) # to 1.2 if it isn't found. GTK_CONFIG = sh -c 'pkg-config gtk+-2.0 $$0 2>/dev/null || gtk-config $$0' -CFLAGS := -O2 -Wall -Werror -ansi -pedantic -g -I./ -Iicons/ `$(GTK_CONFIG) \ +CFLAGS := -O2 -Wall -Werror -ansi -g -I./ -Iicons/ `$(GTK_CONFIG) \ --cflags` $(CFLAGS) XLIBS = `$(GTK_CONFIG) --libs` -lm ULIBS = -lm# diff --git a/configure b/configure index ff361f3..a230eaa 100755 --- a/configure +++ b/configure @@ -4299,7 +4299,7 @@ if test "x$GCC" = "xyes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable gcc warning flags" >&5 $as_echo_n "checking for usable gcc warning flags... " >&6; } gccwarningflags= - for flag in -Wall -Werror -std=c89 -pedantic; do + for flag in -Wall -Werror -std=c89 ; do ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS$gccwarningflags $flag $GTK_CFLAGS" diff --git a/configure.ac b/configure.ac index d9b109b..486beb1 100644 --- a/configure.ac +++ b/configure.ac @@ -42,7 +42,7 @@ fi if test "x$GCC" = "xyes"; then AC_MSG_CHECKING([for usable gcc warning flags]) gccwarningflags= - for flag in -Wall -Werror -std=c89 -pedantic; do + for flag in -Wall -Werror -std=c89 ; do ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS$gccwarningflags $flag $GTK_CFLAGS" diff --git a/debian/changelog b/debian/changelog index bc0e41b..d98626f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,9 @@ sgt-puzzles (20170923.ff218728-0+iwj1) unstable; urgency=medium * merge from upstream + * remove -pedantic - -- Ian Jackson Sun, 24 Sep 2017 14:15:40 +0100 + -- Ian Jackson Sun, 24 Sep 2017 14:42:04 +0100 sgt-puzzles (20161228.7cae89f-1+iwj) unstable; urgency=medium diff --git a/mkfiles.pl b/mkfiles.pl index c0874ae..8772dd7 100755 --- a/mkfiles.pl +++ b/mkfiles.pl @@ -1292,7 +1292,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 -ansi -pedantic -g " . + &splitline("CFLAGS := -O2 -Wall -Werror -ansi -g " . (join " ", map {"-I$dirpfx$_"} @srcdirs) . " `\$(GTK_CONFIG) --cflags` \$(CFLAGS)")."\n". "XLIBS = `\$(GTK_CONFIG) --libs` -lm\n".