문제

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