From d919cea3708bea995a30f5f324d9130245c94397 Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Wed, 22 Nov 2017 05:36:36 +0200 Subject: [PATCH] Reduce warnings --- Telegram/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Telegram/CMakeLists.txt b/Telegram/CMakeLists.txt index a9e0ffa19..fa2405a5f 100644 --- a/Telegram/CMakeLists.txt +++ b/Telegram/CMakeLists.txt @@ -538,6 +538,10 @@ add_executable(Telegram ${GUI_TYPE} ${tg_RESOURCES_RCC} ${APPLE_BUNDLE_SRC} ) + +# Disable a single annoying warning about c++17 +target_compile_options(Telegram PRIVATE -Wno-c++1z-extensions) + target_link_libraries(Telegram tg_boxes) target_link_libraries(Telegram Qt5::Core Qt5::Widgets) # crashpad::crashpad_client) target_link_libraries(Telegram ${LIBLZMA_LIBRARIES} ${OPENSSL_LIBRARIES} ${ZLIB_LIBRARIES} ${OPENAL_LIBRARY})