Adjust #pragma warning so GCC is not unhappy
authorRoger Ferrer Ibanez <roger.ferrer@bsc.es>
Mon, 13 Feb 2023 09:51:48 +0000 (09:51 +0000)
committerRoger Ferrer Ibanez <roger.ferrer@bsc.es>
Mon, 13 Feb 2023 10:08:38 +0000 (10:08 +0000)
In d768bf994f508d7eaf9541a568be3d71096febf5 a warning to help
transitioning was added to llvm/Support/Host.h but it includes extra
parentheses which make GCC unhappy (clang seems to accept them fine).

This change removes the parentheses around the string literal.

Differential Revision: https://reviews.llvm.org/D143885

llvm/include/llvm/Support/Host.h

index e205cfb..113a252 100644 (file)
@@ -12,7 +12,7 @@
 //===----------------------------------------------------------------------===//
 
 #ifdef __GNUC__
-#pragma GCC warning(                                                           \
-    "This header is deprecated, please use llvm/TargetParser/Host.h")
+#pragma GCC warning                                                            \
+    "This header is deprecated, please use llvm/TargetParser/Host.h"
 #endif
 #include "llvm/TargetParser/Host.h"