Skip to content

Add -Werror to *build rules#1347

Merged
Cyan4973 merged 3 commits intofacebook:devfrom
terrelln:werror
Sep 29, 2018
Merged

Add -Werror to *build rules#1347
Cyan4973 merged 3 commits intofacebook:devfrom
terrelln:werror

Conversation

@terrelln
Copy link
Copy Markdown
Contributor

CircleCI build should pass -Werror to the build tests, instead of relying it on being set implicitly in the environment variables.

This exposes a warning about lstat() in -std=c99 builds. -std=c99 defines __STRICT_ANSI__, which hides the declaration of lstat() in the <sys/stat.h> header.

I also fixed warnings minigzip.c. Since it is just an example, I just removed snprintf().

@Cyan4973 Cyan4973 merged commit 69596c0 into facebook:dev Sep 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants