diff --git a/build.rs b/build.rs index 8eba123a..8becd628 100644 --- a/build.rs +++ b/build.rs @@ -105,6 +105,8 @@ fn compile_grammar( .include(include) .files(c_sources) .warnings(false) + .extra_warnings(false) + .flag_if_supported("-std=c11") .try_compile(output_name)?; } @@ -114,6 +116,7 @@ fn compile_grammar( .include(include) .files(cpp_sources) .warnings(false) + .extra_warnings(false) .flag_if_supported("-std=c++14") .try_compile(&format!("{}-cpp-compile-diffsiter", &output_name))?; }