Frage

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?

War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top