Need to work around the gcc Wunused-function bug as far back as gcc 6.1, update accordingly.

llvm-svn: 318372
This commit is contained in:
Eric Christopher 2017-11-16 03:18:13 +00:00
parent f18016c640
commit 7f04e87a0f
1 changed files with 3 additions and 3 deletions

View File

@ -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