Hi Pedro,
Thanks for your comment.

I hope this attribute can silent Wunused in GCC build.

Because it will be nice to declaim GLOBAL_REMOVE_IF_UNREFERENCED before unusd 
variable than #ifdef

example1:

#ifdef (UNUSED_CONDITION)

static Boolean samplvariable; // which will be triggered the Wunused warning 
message in GCC

#endif

example2:

GLOBAL_REMOVE_IF_UNREFERENCED static Boolean samplvariable; // which will be 
triggered the Wunused warning message in GCC

I think example2 will be better than example1.

Best Regards,

Joe Lu


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#103753): https://edk2.groups.io/g/devel/message/103753
Mute This Topic: https://groups.io/mt/98551348/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to