forked from OSchip/llvm-project
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:
parent
f18016c640
commit
7f04e87a0f
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue