Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove error on compiler warnings by default, except on CI #124

Merged
merged 1 commit into from
Nov 10, 2020

Conversation

dylanahsmith
Copy link
Contributor

Problem

@tobi encountered a compiler warning that was treated as an error due when trying to compile liquid-c on linux with gcc 9.3.

This wasn't an error that was caught by CI and I wasn't able to reproduce this and I don't think we should have confidence that we can catch all compiler warnings before another developer experiences them.

Solution

Only treat warnings as errors by default on CI. We can set the LIQUID_C_PENDANTIC environment variable to opt-in to this locally.

@dylanahsmith
Copy link
Contributor Author

Tobi already committed the fix for this compiler error in commit b435341

@dylanahsmith dylanahsmith merged commit c86424c into master Nov 10, 2020
@dylanahsmith dylanahsmith deleted the no-error-on-warn-by-default branch November 10, 2020 14:54
@dylanahsmith dylanahsmith mentioned this pull request Nov 11, 2020
dylanahsmith added a commit that referenced this pull request Feb 11, 2021
dylanahsmith added a commit that referenced this pull request Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants