https://bugs.llvm.org/show_bug.cgi?id=31999
Bug ID: 31999
Summary: _Pragma in submacro
Product: clang
Version: 4.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
_Pragmas should hide both warnings
clang-4.0 hides one warning, and clang++ hides neither
This is similar to bug 15129, but doesn't depend on concatenation, and is
important to my code
-----------
#define HIDE(...) \
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-Wint-conversion\"") \
__VA_ARGS__ \
_Pragma("clang diagnostic pop")
#define A(B) B
int main(void) {
int a;
HIDE(a = (int*)0);
A(HIDE(a = (int*)0)); }
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs