Skip to content

Conversation

@dkovba
Copy link
Contributor

@dkovba dkovba commented Aug 22, 2025

To handle warnings as errors when building, use make. To allow warnings, use make WARNINGS_AS_ERRORS=false test.

Also see apple/container#535.

@dkovba dkovba requested a review from dcantah August 22, 2025 22:35
@crosbymichael
Copy link
Contributor

Instead of an additional make target, can we just unify all the targets with:

  • make WARNINGS_AS_ERRORS=false
  • make WARNINGS_AS_ERRORS=false test
  • make WARNINGS_AS_ERRORS=false init
    • make WARNINGS_AS_ERRORS=false ...

What do you think?

@dkovba
Copy link
Contributor Author

dkovba commented Aug 26, 2025

I do not mind, but this would make building with warnings allowed less convenient. @dcantah Do you have a preference?

@dcantah
Copy link
Contributor

dcantah commented Aug 26, 2025

Michael's idea is fine with me. It'll hopefully be rare enough (meaning the need to build with warnings) that it won't matter for ergonomics much.

@dkovba dkovba force-pushed the dkovba/warnings-as-errors branch from 53c5da6 to 315c881 Compare August 27, 2025 18:47
@dkovba dkovba requested a review from crosbymichael August 27, 2025 18:47
@crosbymichael crosbymichael merged commit 6a31184 into apple:main Aug 28, 2025
2 checks passed
@dkovba dkovba deleted the dkovba/warnings-as-errors branch August 28, 2025 15:33
dkovba added a commit to apple/container that referenced this pull request Sep 10, 2025
To handle warnings as errors when building, use make. To allow warnings,
use make WARNINGS_AS_ERRORS=false test.

Also see apple/containerization#271.
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.

3 participants