[PATCH] D61046: Fix compilation warnings when compiling with GCC 7.3
Tom Stellard via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 24 13:14:51 PDT 2019
tstellar added inline comments.
Comment at: llvm/trunk/unittests/Transforms/Scalar/CMakeLists.txt:14-17
+# Workaround for the gcc 6.1 bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80916.
+if (CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 6.0)
+ set_source_files_properties(LoopPassManagerTest.cpp PROPERTIES COMPILE_FLAGS -Wno-unused-function)
> tstellar wrote:
> > Same thing here too.
> Not sure I understand, there're plenty of compiler-specific examples in the .cmake files. Is there an alternate way to fix this?
I know there are some, but I don't think a warning like this is important enough to fix with a compiler specific work-around.
CHANGES SINCE LAST ACTION
More information about the cfe-commits