[pygobject] Make some warnings fatal
- From: Martin Pitt <martinpitt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Make some warnings fatal
- Date: Fri, 27 Jul 2012 21:17:30 +0000 (UTC)
commit 97b5184c6650964ae8a7616353f5ce8e3ca19af3
Author: Martin Pitt <martinpitt gnome org>
Date: Fri Jul 27 22:59:21 2012 +0200
Make some warnings fatal
Add -Werror for some warnings which are real errors in the source which we
really want to avoid. This includes -Wmissing-prototypes, but that currently
breaks on building g-i's regress.c.
configure.ac | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index f8edbe4..45408fb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -222,6 +222,11 @@ AC_SUBST(INTROSPECTION_COMPILER)
dnl add required cflags ...
if test "x$GCC" = "xyes"; then
JH_ADD_CFLAG([-Wall])
+ #JH_ADD_CFLAG([-Werror=missing-prototypes])
+ JH_ADD_CFLAG([-Werror=implicit-function-declaration])
+ JH_ADD_CFLAG([-Werror=pointer-arith])
+ JH_ADD_CFLAG([-Werror=format-security])
+ JH_ADD_CFLAG([-Werror=missing-include-dirs])
JH_ADD_CFLAG([-fno-strict-aliasing])
case $host_os in
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]