سؤال

I want to use anonymous struct in my C++ program without this warning but keep -pedantic flag because I want to know if I'm using any other compiler-extension from Microsoft/GCC on clang. I know that -Wno-gnu but it turn off more than I'm looking for, every gcc's extension supported. Is it possible?

هل كانت مفيدة؟

المحلول

-Wno-gnu-anonymous-struct should do the job.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top