X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=cmake%2FQuasselCompileSettings.cmake;h=014d4b3026eeb60205830e25640ea98f2bfb8931;hp=eb38958ab291f490983049e498e941ea38c2d651;hb=cd8b613fdedc1990bdcad7dee2cd79a7c690a088;hpb=f5e769ff450b592bc645473e11f9258aec241f0e diff --git a/cmake/QuasselCompileSettings.cmake b/cmake/QuasselCompileSettings.cmake index eb38958a..014d4b30 100644 --- a/cmake/QuasselCompileSettings.cmake +++ b/cmake/QuasselCompileSettings.cmake @@ -1,6 +1,6 @@ # This file contains compile flags and general build configuration for Quassel # -# (C) 2014-2019 by the Quassel Project +# (C) 2014-2020 by the Quassel Project # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. @@ -45,6 +45,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") -Wvla -Werror=return-type "$<$:-Werror>" + -Wno-error=deprecated-declarations # Don't break on Qt upgrades -Wno-unknown-pragmas "$<$>:-U_FORTIFY_SOURCE;-D_FORTIFY_SOURCE=2>" ) @@ -91,6 +92,8 @@ elseif(MSVC) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4456") # C4458: declaration of 'identifier' hides class member set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4458") + # C4996: deprecation warnings + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4996") # Link against the correct version of the C runtime set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/NODEFAULTLIB:libcmt /DEFAULTLIB:msvcrt ${CMAKE_EXE_LINKER_FLAGS_RELEASE}")