summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2016-04-16 22:26:47 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-04-16 22:26:47 +0300
commitcecb3644b9e0a76a9d2ebead72917523a5350adf (patch)
tree073a6616314827854ec8f57f0b1d67a845f2bed3 /py
parentf902b289c2a3956176fc328afb31ea4fc91f8984 (diff)
add -Wextra & fix warnings
Diffstat (limited to 'py')
-rw-r--r--py/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/CMakeLists.txt b/py/CMakeLists.txt
index f701ef6..7766480 100644
--- a/py/CMakeLists.txt
+++ b/py/CMakeLists.txt
@@ -14,6 +14,8 @@ include_directories(../libkms++ ../libkmstest)
#set(CMAKE_SWIG_FLAGS "-I../../libkms")
set(CMAKE_SWIG_FLAGS "-builtin")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-missing-field-initializers")
+
set_source_files_properties(pykms.i PROPERTIES CPLUSPLUS ON)
swig_add_module(pykms python pykms.i)
swig_link_libraries(pykms kms++ kmstest ${LIBDRM_LIBRARIES} ${PYTHON_LIBRARIES})