-Wno-gnu-anonymous-struct
should do the job.
How to disable warnings about anonymous struct in clang?
-
14-10-2022 - |
سؤال
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?
المحلول
لا تنتمي إلى StackOverflow