From 7f04e87a0f9d6bb084e8201a896f638530059e59 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 16 Nov 2017 03:18:13 +0000 Subject: [PATCH] Need to work around the gcc Wunused-function bug as far back as gcc 6.1, update accordingly. llvm-svn: 318372 --- llvm/unittests/Transforms/Scalar/LoopPassManagerTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/unittests/Transforms/Scalar/LoopPassManagerTest.cpp b/llvm/unittests/Transforms/Scalar/LoopPassManagerTest.cpp index 60c5846..2b8130b 100644 --- a/llvm/unittests/Transforms/Scalar/LoopPassManagerTest.cpp +++ b/llvm/unittests/Transforms/Scalar/LoopPassManagerTest.cpp @@ -21,8 +21,8 @@ #include "llvm/IR/PassManager.h" #include "llvm/Support/SourceMgr.h" -// Workaround for the gcc 7.1 bug PR80916. -#if defined(__GNUC__) && __GNUC__ > 6 +// Workaround for the gcc 6.1 bug PR80916. +#if defined(__GNUC__) && __GNUC__ > 5 # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Wunused-function" #endif @@ -30,7 +30,7 @@ #include "gmock/gmock.h" #include "gtest/gtest.h" -#if defined(__GNUC__) && __GNUC__ > 6 +#if defined(__GNUC__) && __GNUC__ > 5 # pragma GCC diagnostic pop #endif -- 2.7.4