[gvfs] Add -Wtype-limits
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gvfs] Add -Wtype-limits
- Date: Thu, 19 Nov 2009 10:59:09 +0000 (UTC)
commit ba80e5e40a8d8407d91595bde981ea2f2d64ef5a
Author: Alexander Larsson <alexl redhat com>
Date: Thu Nov 19 11:50:26 2009 +0100
Add -Wtype-limits
Without this we missed a really bad bug where write() return val was put
in an unsigned int.
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index e859fe3..a11c3f5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -657,7 +657,7 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
-Wcast-align -Wsign-compare \
$CFLAGS"
- for option in -Wno-strict-aliasing -Wno-sign-compare; do
+ for option in -Wno-strict-aliasing -Wno-sign-compare -Wtype-limits; do
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $option"
AC_MSG_CHECKING([whether gcc understands $option])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]