From a8169628c21188564238213fd9723c054de526f3 Mon Sep 17 00:00:00 2001 From: eidheim Date: Thu, 5 Aug 2021 15:36:30 +0200 Subject: [PATCH] Added compile flags -Wstring-conversion and -Wliteral-conversion for clang++ --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3fc22d8..4218677 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,7 +39,7 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") add_compile_options(-Wno-cpp) elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang") add_compile_options("-Wno-#warnings") - add_compile_options(-Wthread-safety -Wno-deprecated) + add_compile_options(-Wthread-safety -Wno-deprecated -Wstring-conversion -Wliteral-conversion) endif() if(APPLE)