From: <zu...@us...> - 2015-03-16 13:29:00
|
Revision: 5149 http://sourceforge.net/p/fuse-emulator/code/5149 Author: zubzero Date: 2015-03-16 13:28:53 +0000 (Mon, 16 Mar 2015) Log Message: ----------- configure.ac: always use -Wwrite-strings when using GCC Modified Paths: -------------- trunk/libspectrum/configure.ac trunk/libspectrum/hacking/ChangeLog Modified: trunk/libspectrum/configure.ac =================================================================== --- trunk/libspectrum/configure.ac 2015-03-16 02:21:41 UTC (rev 5148) +++ trunk/libspectrum/configure.ac 2015-03-16 13:28:53 UTC (rev 5149) @@ -178,7 +178,7 @@ dnl If it appears we're using gcc as our compiler, turn on warnings if test "$ac_cv_c_compiler_gnu" = yes; then - CFLAGS="$CFLAGS -Wall" + CFLAGS="$CFLAGS -Wall -Wwrite-strings" dnl And possibly lots of warnings AC_MSG_CHECKING(whether lots of warnings requested) AC_ARG_ENABLE(warnings, @@ -191,7 +191,7 @@ warnings=no) AC_MSG_RESULT($warnings) if test "$warnings" = yes; then - CFLAGS="$CFLAGS -Wstrict-prototypes -Wmissing-prototypes -Winline -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Waggregate-return -W -Wsign-compare" + CFLAGS="$CFLAGS -Wstrict-prototypes -Wmissing-prototypes -Winline -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Waggregate-return -W -Wsign-compare" fi fi Modified: trunk/libspectrum/hacking/ChangeLog =================================================================== --- trunk/libspectrum/hacking/ChangeLog 2015-03-16 02:21:41 UTC (rev 5148) +++ trunk/libspectrum/hacking/ChangeLog 2015-03-16 13:28:53 UTC (rev 5149) @@ -993,3 +993,4 @@ 20150315 README,configure.ac: remove automatic fallback to GLib replacement (now --with-fake-glib) (Stuart). 20150315 make-perl.c: add LIBSPECTRUM_HAS_GLIB_REPLACEMENT macro (Stuart). +20150316 configure.ac: always use -Wwrite-strings when using GCC (Stuart). This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |