--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -286,7 +286,7 @@
 endif()
 
 if(CMAKE_C_COMPILER_ID MATCHES GNU)
-  target_compile_options(objlib PRIVATE -Wall -Werror)
+  target_compile_options(objlib PRIVATE -Wall)
 endif()
 if(MINGW AND CMAKE_C_COMPILER_ID MATCHES GNU)
   #TODO: is it needed at all?
