Question

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?

Était-ce utile?

La solution

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top