[llvm] a9329a9 - Adjust #pragma warning so GCC is not unhappy
Roger Ferrer Ibanez via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 13 02:10:35 PST 2023
Author: Roger Ferrer Ibanez
Date: 2023-02-13T10:08:38Z
New Revision: a9329a96ada35b1b5439da4e29eed7db10ff813b
URL: https://github.com/llvm/llvm-project/commit/a9329a96ada35b1b5439da4e29eed7db10ff813b
DIFF: https://github.com/llvm/llvm-project/commit/a9329a96ada35b1b5439da4e29eed7db10ff813b.diff
LOG: Adjust #pragma warning so GCC is not unhappy
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
Added:
Modified:
llvm/include/llvm/Support/Host.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Support/Host.h b/llvm/include/llvm/Support/Host.h
index e205cfba7502a..113a252a12de9 100644
--- a/llvm/include/llvm/Support/Host.h
+++ b/llvm/include/llvm/Support/Host.h
@@ -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"
More information about the llvm-commits
mailing list