From: Guillem Jover Date: Mon, 21 Jan 2008 05:02:56 +0000 (+0200) Subject: Enable -Wextra by default and disable annoying warnings X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc79cc003ee3cbd36f6ac119dfd43a91c81eeed4;p=dpkg Enable -Wextra by default and disable annoying warnings --- diff --git a/debian/rules b/debian/rules index b15239b0..6bc9a2e8 100755 --- a/debian/rules +++ b/debian/rules @@ -2,8 +2,10 @@ # debian/rules for the dpkg suite. # Copyright © 2004 Scott James Remnant -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)))