Hello, according to N3290 16.3p11, empty macro parameters are allowed (by not being disallowed anymore, as they were in C++98 (and most likely 03; unfortunately I don't have access to the 03 standard)). Nevertheless, when using "-pedantic", clang warns about empty macro parameters: "Empty macro arguments were standardized in C99".
The attached patch fixes this by suppressing the warning not only in C99 mode, but also in C++0x mode (diff from inside the directory tools/clang). Jonathan
EmptyArgs.diff
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
