[build] add -Werror=incompatible-pointer-types to help development
@@ -262,7 +262,7 @@ IF (PKG_CONFIG_FOUND)
ENDIF (LIBCAP_FOUND)
ENDIF (PKG_CONFIG_FOUND)
-SET(CC_WARNING_FLAGS "-Wall -Wno-unused-value -Wno-unused-function -Wno-nullability-completeness -Wno-expansion-to-defined -Werror=implicit-function-declaration")
+SET(CC_WARNING_FLAGS "-Wall -Wno-unused-value -Wno-unused-function -Wno-nullability-completeness -Wno-expansion-to-defined -Werror=implicit-function-declaration -Werror=incompatible-pointer-types")
IF ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
IF (NOT ("${CMAKE_C_COMPILER_VERSION}" VERSION_LESS "4.6"))
