$OpenBSD: patch-cmake_cflags_cmake,v 1.1 2017/05/23 20:18:45 espie Exp $

Index: cmake/cflags.cmake
--- cmake/cflags.cmake.orig
+++ cmake/cflags.cmake
@@ -26,9 +26,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "\\w*Clang")
         set(LEATHERMAN_CXX_FLAGS "${LEATHERMAN_CXX_FLAGS} -Wno-deprecated")
     endif()
 
-    if ("${CLANG_VERSION_STRING}" VERSION_GREATER "6.9")
-        set(LEATHERMAN_CXX_FLAGS "${LEATHERMAN_CXX_FLAGS} -Wno-unused-local-typedef")
-    endif()
+    set(LEATHERMAN_CXX_FLAGS "${LEATHERMAN_CXX_FLAGS} -Wno-unused-local-typedef -Wno-expansion-to-defined -Wno-varargs")
 
     # FreeBSD needs -fPIC
     if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
