mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Enable GCC warning flag -Wnested-externs, fix warnings
Move nested extern declarations into header files, or use the already existing declarations. Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@861 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -12,7 +12,7 @@ HOSTCC := gcc
|
||||
HOSTCFLAGS+= -O2 -g -DFCOMPILER -DBOOTSTRAP $(CROSSCFLAGS)
|
||||
HOSTCFLAGS+= -Wall -Wredundant-decls -Wshadow -Wpointer-arith
|
||||
HOSTCFLAGS+= -Wstrict-prototypes -Wmissing-declarations -Wundef -Wendif-labels
|
||||
HOSTCFLAGS+= -Wstrict-aliasing -Wwrite-strings -Wmissing-prototypes
|
||||
HOSTCFLAGS+= -Wstrict-aliasing -Wwrite-strings -Wmissing-prototypes -Wnested-externs
|
||||
HOSTCFLAGS+= -W
|
||||
HOSTINCLUDES := -I$(SRCDIR)/include -I$(SRCDIR)/kernel -I$(SRCDIR)/kernel/include -I$(ODIR)/target/include
|
||||
|
||||
@@ -27,7 +27,7 @@ RANLIB := $(TARGET)ranlib
|
||||
CFLAGS+= -Os -g -DNATIVE_BITWIDTH_EQUALS_HOST_BITWIDTH -USWAP_ENDIANNESS
|
||||
CFLAGS+= -Wall -Wredundant-decls -Wshadow -Wpointer-arith
|
||||
CFLAGS+= -Wstrict-prototypes -Wmissing-declarations -Wundef -Wendif-labels
|
||||
CFLAGS+= -Wstrict-aliasing -Wwrite-strings -Wmissing-prototypes
|
||||
CFLAGS+= -Wstrict-aliasing -Wwrite-strings -Wmissing-prototypes -Wnested-externs
|
||||
CFLAGS+= -Werror
|
||||
INCLUDES := -I$(SRCDIR)/include -I$(SRCDIR)/kernel/include -I$(ODIR)/target/include
|
||||
AS_FLAGS+= -g
|
||||
|
||||
Reference in New Issue
Block a user