aboutsummaryrefslogtreecommitdiff
path: root/make.rules
diff options
context:
space:
mode:
authorThomas Huth <thuth@linux.vnet.ibm.com>2011-12-28 18:30:50 +0100
committerThomas Huth <thuth@linux.vnet.ibm.com>2011-12-28 18:38:39 +0100
commit8536acbc9f7b527d72011110ec15baa85ed278a8 (patch)
treed1187d080ef3cae1343bbd4b10a0967ed9b39e3e /make.rules
parent23c9ac89811b6c01f6f54860eeb3c77252a3b6a8 (diff)
downloadSLOF-8536acbc9f7b527d72011110ec15baa85ed278a8.zip
SLOF-8536acbc9f7b527d72011110ec15baa85ed278a8.tar.gz
SLOF-8536acbc9f7b527d72011110ec15baa85ed278a8.tar.bz2
Enabled -Wmissing-prototypes and -Wstrict-prototypes CFLAGS and cleaned up
These two compiler flags for additional warnings help to improve the quality of the source code: Removed some unused code and fixed some obvious bugs. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Diffstat (limited to 'make.rules')
-rw-r--r--make.rules3
1 files changed, 2 insertions, 1 deletions
diff --git a/make.rules b/make.rules
index 2ecf809..867245d 100644
--- a/make.rules
+++ b/make.rules
@@ -61,8 +61,9 @@ AR ?= $(CROSS)ar
RANLIB ?= $(CROSS)ranlib
CPP ?= $(CROSS)cpp
+WARNFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes
CFLAGS ?= -g -O2 -fno-builtin -ffreestanding -nostdinc -msoft-float \
- -mno-altivec -mabi=no-altivec -Wall -fno-stack-protector
+ -mno-altivec -mabi=no-altivec -fno-stack-protector $(WARNFLAGS)
export CC AS LD CLEAN OBJCOPY OBJDUMP STRIP AR RANLIB CFLAGS