From a9329a96ada35b1b5439da4e29eed7db10ff813b Mon Sep 17 00:00:00 2001 From: Roger Ferrer Ibanez Date: Mon, 13 Feb 2023 09:51:48 +0000 Subject: [PATCH] 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 --- llvm/include/llvm/Support/Host.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/Support/Host.h b/llvm/include/llvm/Support/Host.h index e205cfb..113a252 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" -- 2.7.4