mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Enable more warnings
Enable gcc flags -Wwrite-strings and -Wmissing-prototypes, also enable all warnings on PPC. git-svn-id: svn://coreboot.org/openbios/openbios-devel@289 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -10,6 +10,8 @@ ARCH := ppc
|
||||
ODIR := obj-$(ARCH)
|
||||
HOSTCC := gcc
|
||||
HOSTCFLAGS := -Os -Wall -W -DFCOMPILER -DBOOTSTRAP $(CROSSCFLAGS)
|
||||
HOSTCFLAGS+= -Wredundant-decls -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations
|
||||
HOSTCFLAGS+= -Wundef -Wendif-labels -Wstrict-aliasing -Wwrite-strings -Wmissing-prototypes
|
||||
HOSTINCLUDES := -Iinclude -Ikernel/include -I$(ODIR)/target/include
|
||||
#
|
||||
# MOLPATH is needed if you want to build openbios-mol.elf
|
||||
@@ -25,6 +27,8 @@ NM := $(TARGET)nm
|
||||
STRIP := $(TARGET)strip
|
||||
RANLIB := $(TARGET)ranlib
|
||||
CFLAGS := -Os -Wall -W -msoft-float -DNATIVE_BITWIDTH_EQUALS_HOST_BITWIDTH -USWAP_ENDIANNESS -fno-builtin-bcopy -fno-builtin-log2
|
||||
CFLAGS+= -Wredundant-decls -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations
|
||||
CFLAGS+= -Wundef -Wendif-labels -Wstrict-aliasing -Wwrite-strings -Wmissing-prototypes
|
||||
INCLUDES := -Iinclude -Ikernel/include -I$(ODIR)/target/include
|
||||
|
||||
M4 := m4
|
||||
|
||||
Reference in New Issue
Block a user