[platforms/x11] Silence warning caused by eglCreateImageKHR taking an xpixmap for a pointer
Nothing we can do, the API sucks. So just silence warning.
This commit is contained in:
parent
859709f10a
commit
31e4387852
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
add_library(eglx11common STATIC eglonxbackend.cpp)
|
||||||
target_link_libraries(eglx11common kwin)
|
target_link_libraries(eglx11common kwin)
|
||||||
|
|
Loading…
Reference in a new issue