Remove -Werror from default CFLAGS

Production builds shouldn't include -Werror by default since that could
cause spurious build failures when there are toolchain updates.

CI uses -Werror to prevent warnings, so that should be sufficient.
This commit is contained in:
James McCoy 2023-08-18 11:23:36 -04:00
parent 35a6052fbc
commit 545ef842de
No known key found for this signature in database
GPG key ID: DFE691AE331BA3DB
3 changed files with 5 additions and 3 deletions

View file

@ -28,7 +28,6 @@ fn main() {
.flag_if_supported("-std=c99")
.flag_if_supported("-fvisibility=hidden")
.flag_if_supported("-Wshadow")
.flag_if_supported("-Werror")
.include(src_path)
.include("include")
.file(src_path.join("lib.c"))