I have an Xcode project that I am compiling with Clang using some third-party library with Visual Studio C code.
In a third-party library, anonymous structures are used in the header files (I cannot change this). So I get this warning:
"myfile.h: 47: 17: Anonymous structures are a GNU extension"
As described here, I tried passing "-fms-extensions" in the C flags of my Xcode project: http://clang.llvm.org/docs/UsersManual.html#microsoft-extensions
Bad luck. Any idea how to get rid of this warning?
-Wno-microsoft .
-Wno-microsoft
typedef struct test_struct { struct { int a; int b; }; int x; } Test; int main(int argc, char **argv) { Test test; test.a = 0; }
-Wno-gnu
- LLVM Apple, 5.0 (clang-500.2.79) ( LLVM 3.3svn)
-Wno-microsoft, .