From bc79cc003ee3cbd36f6ac119dfd43a91c81eeed4 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Mon, 21 Jan 2008 07:02:56 +0200 Subject: [PATCH] Enable -Wextra by default and disable annoying warnings --- debian/rules | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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))) -- 2.39.5