Skip to content

add option to disable -Werror on tests#3104

Closed
ribbon-otter wants to merge 2 commits intodavisking:masterfrom
ribbon-otter:weaken-test
Closed

add option to disable -Werror on tests#3104
ribbon-otter wants to merge 2 commits intodavisking:masterfrom
ribbon-otter:weaken-test

Conversation

@ribbon-otter
Copy link
Copy Markdown
Contributor

Adds a cmake option to disable -Werror on tests. This is helpful because when dealing with multiple disparate sources of warnings, it is nice to be able to compile and run tests so see if your fix for one, introduced new problems or not.

-Werror defaults to on. Use cmake .. -DWerror=OFF inside the test build directory to disable.

@ribbon-otter
Copy link
Copy Markdown
Contributor Author

After thinking about this more, I am not convinced this is a useful feature to have, since passing an argument to cmake isn't much less difficult than just manually editing the CMakeLists.txt file temporarily when I need to. I won't feel bad if you reject this pull request.

@davisking
Copy link
Copy Markdown
Owner

Yeah, someone can just edit the file instead. And when there is some problem we should fix it anyway instead of flipping a switch to ignore it too :D

Thanks for the PR though.

@davisking davisking closed this Aug 13, 2025
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