[gnome-disk-utility] Add more compiler warnings
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] Add more compiler warnings
- Date: Mon, 9 Jul 2012 15:29:50 +0000 (UTC)
commit 5a2a48aed48abd6b1f2b97b9feb1264a509fcd0c
Author: David Zeuthen <zeuthen gmail com>
Date: Mon Jul 9 11:28:50 2012 -0400
Add more compiler warnings
Signed-off-by: David Zeuthen <zeuthen gmail com>
configure.ac | 66 +++++++++++++++++++++++++++++++++++++++++++++++----------
1 files changed, 54 insertions(+), 12 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 87e5452..2fb9c29 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,18 +27,60 @@ GNOME_MAINTAINER_MODE_DEFINES
# Compilation
# ***********
-CC_CHECK_CFLAGS_APPEND([ \
- -Wall -Wextra \
- -Wformat-nonliteral -Werror=format-security \
- -Wsign-compare -Werror=implicit-function-declaration \
- -Wpointer-arith -Wwrite-strings -Wstrict-prototypes \
- -Waggregate-return -Wcast-align -Wimplicit -Wuninitialized \
- -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \
- -Wpacked -Wmissing-format-attribute -Wshadow \
- -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations \
- -Wdeclaration-after-statement -Wold-style-definition \
- -Wno-missing-field-initializers -Wno-unused-parameter \
- -fno-common -Wno-switch-enum])
+CC_CHECK_CFLAGS_APPEND([ \
+ -Waggregate-return \
+ -Wall \
+ -W \
+ -Wextra \
+ -Wcast-align \
+ -Wdeclaration-after-statement \
+ -Wendif-labels \
+ -Werror=format-security \
+ -Werror=implicit-function-declaration \
+ -Werror=overflow \
+ -Wextra \
+ -Wformat-nonliteral \
+ -Wformat=2 \
+ -Wimplicit \
+ -Winit-self \
+ -Winit-self \
+ -Wlogical-op \
+ -Wmissing-declarations \
+ -Wmissing-format-attribute \
+ -Wmissing-include-dirs \
+ -Wmissing-noreturn \
+ -Wmissing-prototypes \
+ -Wnested-externs \
+ -Wno-inline \
+ -Wno-long-long \
+ -Wno-missing-field-initializers \
+ -Wno-overlength-strings \
+ -Wno-switch-enum \
+ -Wno-unused-parameter \
+ -Wno-unused-result \
+ -Wold-style-definition \
+ -Wp,-D_FORTIFY_SOURCE=2 \
+ -Wpacked \
+ -Wpointer-arith \
+ -Wredundant-decls \
+ -Wshadow \
+ -Wsign-compare \
+ -Wstrict-aliasing=2 \
+ -Wstrict-prototypes \
+ -Wundef \
+ -Wuninitialized \
+ -Wmaybe-uninitialized \
+ -Wunsafe-loop-optimizations \
+ -Wvla \
+ -Wwrite-strings \
+ -fdata-sections \
+ -fdiagnostics-show-option \
+ -ffast-math \
+ -ffunction-sections \
+ -fno-common \
+ -fno-strict-aliasing \
+ -fvisibility=hidden \
+])
# ***************************
# Check for required packages
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]