Skip to content

Conversation

@eramongodb
Copy link
Contributor

Addresses C standard conformance task failures due to the rhel93 distro updating its system Clang compiler version from 16 to 19 (possibly by accident?). Clang 19 introduces a new -Wpre-c11-compat warning which is triggering -Werror compilation errors when building the public-header-warnings target. Regardless whether the upgrade was intentional or not, we should add this warning to our list anyways.

@eramongodb eramongodb self-assigned this Jun 3, 2025
@eramongodb eramongodb requested a review from a team as a code owner June 3, 2025 18:21
$<$<C_COMPILER_ID:AppleClang,Clang,GNU>:-Wno-declaration-after-statement>
$<$<C_COMPILER_ID:AppleClang,Clang,GNU>:-Wno-disabled-macro-expansion>
$<$<C_COMPILER_ID:AppleClang,Clang>:-Wno-c++98-compat-pedantic>
$<$<C_COMPILER_ID:AppleClang,Clang>:-Wno-pre-c11-compat>
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this break this target on Clang <19.0 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It does not. -Wno-unknown-warning-option allows us to specify future warning flags even for old Clang versions.

Copy link
Contributor

@vector-of-bool vector-of-bool left a comment

Choose a reason for hiding this comment

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

LGTM

@eramongodb eramongodb merged commit 190fe9f into mongodb:master Jun 4, 2025
39 of 42 checks passed
@eramongodb eramongodb deleted the cdriver-warnings branch June 4, 2025 16:55
eramongodb added a commit to eramongodb/mongo-c-driver that referenced this pull request Jul 30, 2025
eramongodb added a commit that referenced this pull request Jul 31, 2025
* CDRIVER-5891 address implicit bool-to-null conversion in return statements (#1888)
* CDRIVER-5891 extend C standard coverage up to C23 (#1890)
* CDRIVER-5959 sync change streams unified spec tests with 0aee4aad  (#1971)
* CDRIVER-5304 set cluster time in test sessions (#2008)
* Ignore -Wpre-c11-compat warnings when building public-header-warnings (#2027)
* CDRIVER-6042 Migrate Python scripts from Poetry to Astral UV (#2039)
* Migrate EVG task coverage to latest Debian, Ubuntu, and RHEL distros (#2044)
* CDRIVER-6010 use `ec2.assume_role` for Azure KMS task (#2051)
* CDRIVER-5971 Use Amazon ECR to obtain OCI images in EVG (#2058)
* update Earthly version from 0.8.3 to 0.8.16 (#2072)

---------

Co-authored-by: Kevin Albertson <[email protected]>
eramongodb added a commit to eramongodb/mongo-c-driver that referenced this pull request Jul 31, 2025
eramongodb added a commit that referenced this pull request Jul 31, 2025
* CDRIVER-5959 temporarily restrict updateDescription tests to 8.1 or older (#1970)
* CDRIVER-5959 sync change streams unified spec tests with 0aee4aad  (#1971)
* CDRIVER-5304 set cluster time in test sessions (#2008)
* CDRIVER-6010 use `ec2.assume_role` for mongohouse task (#2025)
* Ignore -Wpre-c11-compat warnings when building public-header-warnings (#2027)
* CDRIVER-6042 Migrate Python scripts from Poetry to Astral UV (#2039)
* Migrate EVG task coverage to latest Debian, Ubuntu, and RHEL distros (#2044)
* CDRIVER-6010 use `ec2.assume_role` for Azure KMS task (#2051)
* CDRIVER-5971 Use Amazon ECR to obtain OCI images in EVG (#2058)
* CDRIVER-5874 Drop Debian 10 EVG task coverage (#2062)
* update Earthly version from 0.8.3 to 0.8.16 (#2072)

---------

Co-authored-by: Kevin Albertson <[email protected]>
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