From dd28139a9e6702df121943a894215e3349810738 Mon Sep 17 00:00:00 2001 From: nhmall Date: Sat, 15 Jan 2022 17:12:06 -0500 Subject: [PATCH] QT build warning The reason that the QT6.2 build on Linux was getting a warning on qt_main.cpp, but the QT6.2 build on macOS was not, was because of a difference in compiler flags between clang++ and g++. clang++ was using the -Wno-deprecated-declarations and g++ wasn't, so add it. --- sys/unix/hints/include/compiler.370 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/unix/hints/include/compiler.370 b/sys/unix/hints/include/compiler.370 index 719bb7a94..e9f56d0df 100755 --- a/sys/unix/hints/include/compiler.370 +++ b/sys/unix/hints/include/compiler.370 @@ -90,11 +90,13 @@ ifeq "$(GPPGTEQ9)" "1" CCXXFLAGS+=-Wformat-overflow ifdef WANT_WIN_QT CCXXFLAGS+=-Wno-deprecated-copy +CCXXFLAGS+=-Wno-deprecated-declarations endif # WANT_WIN_QT endif # g++ version greater than or equal to 9 # end of gcc-specific else # clang-specific follows + # get the version of clang++ CLANGPPGTEQ9 := $(shell expr `$(CXX) -dumpversion | cut -f1 -d.` \>= 9) ifeq "$(CLANGPPGTEQ9)" "1"