Skip to content

Disable warnings for C2Y extensions by default#146

Merged
timwoj merged 1 commit into
masterfrom
topic/timw/disable-c2y-extension-warnings
Apr 1, 2026
Merged

Disable warnings for C2Y extensions by default#146
timwoj merged 1 commit into
masterfrom
topic/timw/disable-c2y-extension-warnings

Conversation

@timwoj
Copy link
Copy Markdown
Member

@timwoj timwoj commented Mar 31, 2026

Building with Clang 22/23 results in a big block warnings from Broker as reported in zeek/broker#499. We're unlikely to support C2Y (C26) any time soon, since we don't even support C23 yet. Disable the warnings for these extensions.

@timwoj timwoj requested a review from awelzel April 1, 2026 16:17
Copy link
Copy Markdown
Contributor

@awelzel awelzel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it only broker that produces these warnings? I was wondering if we could push the flag down to only affect auxil/broker (or even caf), but not sure.

Also wondering a bit if anything in CI will be upset - we'll see it with the bump?

@timwoj
Copy link
Copy Markdown
Member Author

timwoj commented Apr 1, 2026

Is it only broker that produces these warnings?

Only broker right now, but they're all things we don't care about so I don't any reason to limit it to just broker. It also only shows up in clang-22 builds so it won't show up in bumps. It fixes it for those builds locally. I can bring it into zeek/zeek#5309, which is currently failing because of the warnings.

@timwoj timwoj merged commit 253968a into master Apr 1, 2026
1 check passed
@timwoj timwoj deleted the topic/timw/disable-c2y-extension-warnings branch April 1, 2026 22:42
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