[hipl-commit] [trunk] Rev 4583: Add -Wcast-qual and -Winline to CFLAGS, but just generate warnings, not errors.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Mon, 24 May 2010 14:34:05 +0300

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 24/05/2010 at 14:34:05
Revision: 4583
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Add -Wcast-qual and -Winline to CFLAGS, but just generate warnings, not 
errors.

Modified:
  M  configure.ac

=== modified file 'configure.ac'
--- configure.ac        2010-05-21 10:50:14 +0000
+++ configure.ac        2010-05-24 11:32:37 +0000
@@ -71,6 +71,8 @@
 AC_SUBST(AM_CFLAGS, "$AM_CFLAGS -Wundef -Wstrict-prototypes 
-Wmissing-prototypes")
 AC_SUBST(AM_CFLAGS, "$AM_CFLAGS -Wno-deprecated-declarations -Wpointer-arith")
 AC_SUBST(AM_CFLAGS, "$AM_CFLAGS -Wwrite-strings -Wshadow")
+AC_SUBST(AM_CFLAGS, "$AM_CFLAGS -Wcast-qual -Wno-error=cast-qual")
+AC_SUBST(AM_CFLAGS, "$AM_CFLAGS -Winline -Wno-error=inline")
 
 #TODO fix the code and get rid of this one
 AC_SUBST(AM_CFLAGS, "$AM_CFLAGS -fno-strict-aliasing")

Other related posts:

  • » [hipl-commit] [trunk] Rev 4583: Add -Wcast-qual and -Winline to CFLAGS, but just generate warnings, not errors. - Diego Biurrun