build UPDATE enable pedantic compilation
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 991af12..66c564b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -72,7 +72,7 @@
 set(LIBYANG_SOVERSION ${LIBYANG_MAJOR_SOVERSION})
 
 # global C flags
-set(CMAKE_C_FLAGS                "${CMAKE_C_FLAGS} -Wall -Wextra -std=c11")
+set(CMAKE_C_FLAGS                "${CMAKE_C_FLAGS} -Wall -Wextra -Wpedantic -std=c11")
 
 include_directories(${PROJECT_BINARY_DIR}/src ${PROJECT_SOURCE_DIR}/src)