]> err.no Git - dpkg/commitdiff
Enable -Wextra by default and disable annoying warnings
authorGuillem Jover <guillem@debian.org>
Mon, 21 Jan 2008 05:02:56 +0000 (07:02 +0200)
committerGuillem Jover <guillem@debian.org>
Mon, 21 Jan 2008 05:02:56 +0000 (07:02 +0200)
debian/rules

index b15239b052eb1518e7b56f17d9464c55ec8a7d4e..6bc9a2e87c2dc49bb52326fe9bc955fb3a73a298 100755 (executable)
@@ -2,8 +2,10 @@
 # debian/rules for the dpkg suite.
 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>
 
-CFLAGS = -Wall -g
-CXXFLAGS = -Wall -g
+WFLAGS := -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers
+
+CFLAGS = -g $(WFLAGS)
+CXXFLAGS = -g $(WFLAGS)
 
 # Disable optimisations if ‘noopt’ found in $DEB_BUILD_OPTIONS
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))