Explorar o código

Enable -Wextra by default and disable annoying warnings

Guillem Jover %!s(int64=18) %!d(string=hai) anos
pai
achega
bc79cc003e
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      debian/rules

+ 4 - 2
debian/rules

@@ -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)))