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...@intel.com> 发送时间: 2023年5月5日 8:04 收件人: gaoliming <gaolim...@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 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#104085): https://edk2.groups.io/g/devel/message/104085 Mute This Topic: https://groups.io/mt/98698470/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-