diff options
author | Thomas Huth <thuth@linux.vnet.ibm.com> | 2011-12-28 18:30:50 +0100 |
---|---|---|
committer | Thomas Huth <thuth@linux.vnet.ibm.com> | 2011-12-28 18:38:39 +0100 |
commit | 8536acbc9f7b527d72011110ec15baa85ed278a8 (patch) | |
tree | d1187d080ef3cae1343bbd4b10a0967ed9b39e3e /make.rules | |
parent | 23c9ac89811b6c01f6f54860eeb3c77252a3b6a8 (diff) | |
download | SLOF-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.rules | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |