From 4406a0666e2517593a49ff94d2ff5c40709c54c6 Mon Sep 17 00:00:00 2001
From: Olivier Martin <olivier.martin@arm.com>
Date: Thu, 27 Sep 2012 12:50:35 +0100
Subject: [PATCH] BaseTools/Conf/tools_def.template: Added -Wno-address to prevent some warning in DXE Core

Compiler errors:
  MdeModulePkg/Core/Dxe/Hand/Notify.c: In function 'CoreNotifyProtocolEntry':
  MdeModulePkg/Core/Dxe/Hand/Notify.c:33:100: error: the comparison will always evaluate as 'true' for the address of 'gProtocolDatabaseLock' will never be NULL [-Werror=address]
  MdeModulePkg/Core/Dxe/Hand/Notify.c: In function 'CoreRemoveInterfaceFromProtocol':
  MdeModulePkg/Core/Dxe/Hand/Notify.c:65:100: error: the comparison will always evaluate as 'true' for the address of 'gProtocolDatabaseLock' will never be NULL [-Werror=address]

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
---
 BaseTools/Conf/tools_def.template |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.template
index 9191b01..1d8eb3e 100644
--- a/BaseTools/Conf/tools_def.template
+++ b/BaseTools/Conf/tools_def.template
@@ -2541,7 +2541,7 @@ DEFINE GCC_ALL_CC_FLAGS            = -g -Os -fshort-wchar -fno-strict-aliasing -
 DEFINE GCC_IA32_CC_FLAGS           = DEF(GCC_ALL_CC_FLAGS) -m32 -malign-double -freorder-blocks -freorder-blocks-and-partition -O2 -mno-stack-arg-probe
 DEFINE GCC_X64_CC_FLAGS            = DEF(GCC_ALL_CC_FLAGS) -mno-red-zone -Wno-address -mno-stack-arg-probe
 DEFINE GCC_IPF_CC_FLAGS            = DEF(GCC_ALL_CC_FLAGS) -minline-int-divide-min-latency
-DEFINE GCC_ARMGCC_CC_FLAGS         = DEF(GCC_ALL_CC_FLAGS) -mword-relocations -mlittle-endian -mabi=aapcs -mapcs -fno-short-enums -save-temps -fsigned-char  -ffunction-sections -fdata-sections -fomit-frame-pointer
+DEFINE GCC_ARMGCC_CC_FLAGS         = DEF(GCC_ALL_CC_FLAGS) -mword-relocations -mlittle-endian -mabi=aapcs -mapcs -fno-short-enums -save-temps -fsigned-char  -ffunction-sections -fdata-sections -fomit-frame-pointer -Wno-address
 DEFINE GCC_DLINK_FLAGS_COMMON      = -nostdlib --pie
 DEFINE GCC_IA32_X64_DLINK_COMMON   = DEF(GCC_DLINK_FLAGS_COMMON) --gc-sections
 DEFINE GCC_IA32_X64_ASLDLINK_FLAGS = DEF(GCC_IA32_X64_DLINK_COMMON) --entry _ReferenceAcpiTable -u $(IMAGE_ENTRY_POINT)
-- 
1.7.0.4

