[platforms/x11] Silence warning caused by eglCreateImageKHR taking an xpixmap for a pointer

Nothing we can do, the API sucks. So just silence warning.
icc-effect-5.14.5
Martin Flöser 2017-07-29 20:01:11 +02:00
parent 859709f10a
commit 31e4387852
1 changed files with 6 additions and 0 deletions

View File

@ -1,2 +1,8 @@
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-int-to-pointer-cast")
endif()
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-int-to-void-pointer-cast")
endif()
add_library(eglx11common STATIC eglonxbackend.cpp)
target_link_libraries(eglx11common kwin)