Joe:

 Such warning message in RELEASE build is expected. I suggest to disable them by compiler option.  If so, we don’t need to modify source code.

 

Thanks

Liming

发件人: JoeX Lu <pen-chunx.lu@intel.com>
发送时间: 202355 8:04
收件人: gaoliming <gaoliming@byosoft.com.cn>; devel@edk2.groups.io
主题: Re: [edk2-devel] 回复: [edk2-devel] [PATCH] Support GLOBAL_REMOVE_IF_UNREFERENCED in GCC5/11

 

Hi Liming,
  For question1: We might declaim some variables/functions only used in DEBUG mode and those are necessary variables/functions for debugging but will trigger warning message in RELEASE build.

  For question2: Yes