diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2010-01-03 17:43:37 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2010-01-03 17:43:37 -0500 |
commit | 1ca05b0f393c0201c0e8efe87831edddb6a53532 (patch) | |
tree | 4419fdb78cba0962313f8e6bcf35d16a3401183e /Makefile | |
parent | b5bb9db8425b3b463e634874e3a201a354d55ac7 (diff) |
Be sure to add "void" to all function prototypes that take no args.
Omitting "void" leads to a K&R style declaration which was not intended.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -25,12 +25,12 @@ cc-option = $(shell if test -z "`$(1) $(2) -S -o /dev/null -xc \ /dev/null 2>&1`"; then echo "$(2)"; else echo "$(3)"; fi ;) # Default compiler flags -COMMONCFLAGS = -Wall -Os -MD -m32 -march=i386 -mregparm=3 \ - -mpreferred-stack-boundary=2 -mrtd -freg-struct-return \ - -ffreestanding -fomit-frame-pointer \ - -fno-delete-null-pointer-checks -Wno-strict-aliasing \ - -ffunction-sections -fdata-sections -fno-common \ - -minline-all-stringops +COMMONCFLAGS = -Os -MD -Wall -Wold-style-definition -Wno-strict-aliasing \ + -m32 -march=i386 -mregparm=3 -mpreferred-stack-boundary=2 \ + -mrtd -minline-all-stringops \ + -freg-struct-return -ffreestanding -fomit-frame-pointer \ + -fno-delete-null-pointer-checks \ + -ffunction-sections -fdata-sections -fno-common COMMONCFLAGS += $(call cc-option,$(CC),-nopie,) COMMONCFLAGS += $(call cc-option,$(CC),-fno-stack-protector,) COMMONCFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,) |