diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-01-02 16:53:48 +0100 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-01-02 16:53:48 +0100 |
commit | 4165dbd1428152b511b4c03c309959d157fca9a4 (patch) | |
tree | 20f0b05b7f3aa862a1fccad223e80a533c0ed8ae | |
parent | f6ad0cf7c06e14f4f9e09e56a546db1692cfe09d (diff) | |
download | xine-lib-4165dbd1428152b511b4c03c309959d157fca9a4.tar.gz xine-lib-4165dbd1428152b511b4c03c309959d157fca9a4.tar.bz2 |
Add one more warning to build, to spot misusage of literal strings.
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index af49a2746..80db4096b 100644 --- a/configure.ac +++ b/configure.ac @@ -468,6 +468,7 @@ CC_CHECK_CFLAGS([-Wstrict-aliasing=2], [warnflags="$warnflags -Wstrict-aliasing= CC_CHECK_CFLAGS([-Wchar-subscripts], [warnflags="$warnflags -Wchar-subscripts"]) CC_CHECK_CFLAGS([-Wmissing-declarations], [warnflags="$warnflags -Wmissing-declarations"]) CC_CHECK_CFLAGS([-Wmissing-prototypes], [warnflags="$warnflags -Wmissing-prototypes"]) +CC_CHECK_CFLAGS([-Wwrite-strings], [warnflags="$warnflags -Wwrite-strings"]) dnl Some combinations of gcc and glibc produce useless warnings on memset when dnl compiling with -Wpointer-arith, so check for this first. |