--- a/m4/ax_config_cc.m4
+++ b/m4/ax_config_cc.m4
@@ -71,7 +71,7 @@
    # Default: use -include flag
    cc_dep_CPPFLAGS="-include \"config.h\" -include \"nanox-config.h\""
    cc_dep_CXXFLAGS="-include \"new_decl.hpp\""
-   AX_APPEND_FLAG([-Wall -Wextra -Wshadow -Wmissing-declarations -Wno-unused-parameter -Wno-missing-field-initializers -Werror],[cc_dep_CXXFLAGS])
+   AX_APPEND_FLAG([-Wall -Wextra -Wshadow -Wmissing-declarations -Wno-unused-parameter -Wno-missing-field-initializers],[cc_dep_CXXFLAGS])
    no_inline_flag=-fno-inline
  ])
 
