Skip to content

Print a warning when assertions are enabled. - #4552

Closed
23Skidoo wants to merge 3 commits into
haskell:masterfrom
23Skidoo:warn-assertions
Closed

23Skidoo wants to merge 3 commits into
haskell:masterfrom
23Skidoo:warn-assertions

Conversation

@23Skidoo

@23Skidoo 23Skidoo commented Jun 5, 2017

Copy link
Copy Markdown
Member

Fixes #4377.

@mention-bot

Copy link
Copy Markdown

@23Skidoo, thanks for your PR! By analyzing the history of the files in this pull request, we identified @dcoutts, @mmakowski and @ezyang to be potential reviewers.

@23Skidoo 23Skidoo mentioned this pull request Jun 5, 2017
@23Skidoo

Copy link
Copy Markdown
Member Author

Test failures seem to be caused by changes in output, i.e. all those

+Warning: this is a debug build with assertions enabled.

diffs.

@ezyang
Should I just fix the expected output or disable the warning during test suite runs (e.g. by checking an env var)?

@ezyang

ezyang commented Jan 1, 2018

Copy link
Copy Markdown
Contributor

Waaay late to the party.

This warnings should not show up in the expect files. I'm a little confused why they are showing up, though, since you're outputting them directly with putStrLn, so they shouldn't have been "marked" for output...

@gbaz

gbaz commented Aug 12, 2021

Copy link
Copy Markdown
Collaborator

If @23Skidoo doesn't want to pick this up anymore, I think it would be good if someone else did. This is a useful feature!

@jneira

jneira commented Jun 21, 2022

Copy link
Copy Markdown
Member

I've opened a new pr cherry picking this one (so commit authoring is preserved), thanks for the pr!

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.

Print a warning when cabal is built with assertions enabled

5 participants