简体   繁体   中英

How to disable warnings about anonymous struct in clang?

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 应该可以胜任

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM