diff options
author | Matt Fleming <matt.fleming@linux.intel.com> | 2011-07-13 11:44:32 +0100 |
---|---|---|
committer | Matt Fleming <matt.fleming@linux.intel.com> | 2011-07-28 12:22:32 +0100 |
commit | fbcefbd00f64fc360b6e638c617481b4e6fee80c (patch) | |
tree | bc2344cdfc2aa6e927d0ac0e81a3611469c32def | |
parent | aaf56a110683a6f46ad255a5065aa057161b02b6 (diff) | |
download | efilinux-fbcefbd00f64fc360b6e638c617481b4e6fee80c.tar.gz |
Makefile: Turn on -Werror
It's all too easy to miss important warnings if they don't cause the
compiler to error. One really important warning is missing function
declarations - if the function cannot be resolved at runtime by the
EFI loader then efilinux will silently fail to load and run.
Signed-off-by: Matt Fleming <matt.fleming@linux.intel.com>
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -53,7 +53,7 @@ LDSCRIPT=$(LIBDIR)/gnuefi/elf_$(ARCH)_efi.lds CFLAGS=-I. -I/usr/include/efi -I/usr/include/efi/$(ARCH) \ -DEFI_FUNCTION_WRAPPER -fPIC -fshort-wchar -ffreestanding \ - -Wall -Ifs/ -Iloaders/ -D$(ARCH) + -Wall -Ifs/ -Iloaders/ -D$(ARCH) -Werror LDFLAGS=-T $(LDSCRIPT) -Bsymbolic -shared -nostdlib -L$(LIBDIR) $(CRT0) IMAGE=efilinux.efi |