mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-12 20:39:59 +00:00
hv: Enable the compiler warning as error for HV
Fix the compiler warning and turn on the flag to make compiler warning as compiler error. Tracked-On: #1343 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -42,7 +42,7 @@ CFLAGS += -m64 -mno-mmx -mno-sse -mno-sse2 -mno-80387 -mno-fp-ret-in-387
|
||||
CFLAGS += -mno-red-zone
|
||||
CFLAGS += -nostdinc -nostdlib -fno-common
|
||||
CFLAGS += -O2 -D_FORTIFY_SOURCE=2
|
||||
CFLAGS += -Wformat -Wformat-security
|
||||
CFLAGS += -Wformat -Wformat-security -Werror
|
||||
ifeq (y, $(CONFIG_RELOC))
|
||||
CFLAGS += -fpie
|
||||
else
|
||||
|
Reference in New Issue
Block a user