Skip to content

cicd: enable -Wall -Wextra -Werror for clang#1970

Open
romintomasetti wants to merge 1 commit intoNVIDIA:mainfrom
romintomasetti:warnings
Open

cicd: enable -Wall -Wextra -Werror for clang#1970
romintomasetti wants to merge 1 commit intoNVIDIA:mainfrom
romintomasetti:warnings

Conversation

@romintomasetti
Copy link
Copy Markdown
Contributor

@romintomasetti romintomasetti commented Mar 30, 2026

This PR enables for Clang compiler ID:

  1. -Wall -Wextra -Werror
  2. -pedantic-errors

Signed-off-by: romintomasetti <romin.tomasetti@gmail.com>
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot bot commented Mar 30, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@ericniebler
Copy link
Copy Markdown
Collaborator

/ok to test d3bea6c

Comment on lines 264 to +265
target_compile_options(stdexec_executable_flags INTERFACE
$<$<CXX_COMPILER_ID:Clang>:-pedantic-errors;-Wall;-Wextra;-Werror>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I could be wrong but I think by adding these flags to stdexec_executable_flags, you are adding them to every target that links with STDEXEC::stdexec. Consumers of stdexec may not want that.

Perhaps we should add them to the test targets instead. Thoughts?

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