From: Trond Norbye Date: Fri, 14 Feb 2014 07:26:07 +0000 (+0100) Subject: Added -Qunused-arguments for clang on macosx X-Git-Tag: release-2.1.4-alpha~29^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed99d92c014fdd724e79253384613d5c2d02ff9d;p=libevent Added -Qunused-arguments for clang on macosx The CLang provided through Xcode on Mac OSX emits warnings for all unused include paths making the compilation extremely verbose. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 2602a6d3..71d96ec3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -119,6 +119,10 @@ endif() if (APPLE) # Get rid of deprecated warnings for OpenSSL on OSX 10.7 and greater. set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=deprecated-declarations") + # Get rid of "clang: warning: argument unused during compilation: -I etc + if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Qunused-arguments") + endif() endif() # Winsock.