From c480be5814cabc2925c27c50159e891f6c5d633b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20D=C3=ADaz=20M=C3=A1s?= Date: Thu, 22 Apr 2021 07:09:30 +0200 Subject: [PATCH] cmake: disable -Wuseless-cast --- cmake/compilerFlagsExiv2.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/compilerFlagsExiv2.cmake b/cmake/compilerFlagsExiv2.cmake index 1ed3d5a7..07b1bded 100644 --- a/cmake/compilerFlagsExiv2.cmake +++ b/cmake/compilerFlagsExiv2.cmake @@ -21,10 +21,10 @@ if (COMPILER_IS_GCC OR COMPILER_IS_CLANG) # MINGW, Linux, APPLE, CYGWIN " -Wlogical-op" " -Wdouble-promotion" " -Wshadow" - " -Wuseless-cast" " -Wpointer-arith" # This warning is also enabled by -Wpedantic " -Wformat=2" #" -Wold-style-cast" + #" -Wuseless-cast" Disabled mainly because of conversion of socket types (different types on OSs) ) endif ()