~stolowski/nux/merge-trunk

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Michi Henning
  • Date: 2012-09-26 06:44:12 UTC
  • mto: This revision was merged to the branch mainline in revision 678.
  • Revision ID: michi.henning@canonical.com-20120926064412-rrr02nmxn5pe2g4p
Added -Wextra to compiler flags. Fixed a large number of warnings about unused parameters. Fixes #1056633.

Show diffs side-by-side

added added

removed removed

Lines of Context:
312
312
dnl ==========================================================================
313
313
 
314
314
if test "x$GCC" = "xyes"; then
315
 
  GCC_FLAGS="-g -Wall -std=c++0x"
 
315
  GCC_FLAGS="-g -Wall -Wextra -std=c++0x"
316
316
fi
317
317
AC_SUBST(GCC_FLAGS)
318
318
 
326
326
 
327
327
AS_IF([test "x$enable_maintainer_mode" = "xyes" && test "x$GCC" = "xyes"],
328
328
      [
329
 
         MAINTAINER_CFLAGS+="-Werror -Wall -Wcast-align -Wno-uninitialized -Wempty-body -Wformat-security -Winit-self"
 
329
         MAINTAINER_CFLAGS+="-Werror -Wall -Wextra -Wcast-align -Wno-uninitialized -Wempty-body -Wformat-security -Winit-self"
330
330
      ]
331
331
)
332
332