How to disable warnings about anonymous structure in clang?

I want to use an anonymous structure in my C ++ program without this warning, but keep the flag -pedanticbecause I want to know if I use any other compiler extension from Microsoft / GCC on clang. I know that -Wno-gnu, but it shuts off more than I'm looking for, any gcc extension is supported. Is it possible?

+3
source share
1 answer

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

+6
source

All Articles