Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI to use gcc-14 #4983

Draft
wants to merge 21 commits into
base: develop
Choose a base branch
from
Draft

Conversation

derobins
Copy link
Member

No description provided.

Adds two new warnings for gcc 13:

    -Wxor-used-as-pow
    -Wenum-int-mismatch

And sets up Autotools and CMake to use them.

The Autotools now also pull in the gcc 12 developer warnings.

Also bumps the CI to use gcc 13 instead of 12.
This is unnecessary as all the warnings are already set with -Wall
@derobins derobins added Priority - 2. Medium ⏹ It would be nice to have this in the next release Component - Testing Code in test or testpar directories, GitHub workflows Type - Improvement Improvements that don't add a new feature or functionality Merge - To 2.0 This needs to be merged to HDF5 2.0 labels Oct 19, 2024
@derobins derobins changed the title Update CI to use gcc-13 Update CI to use gcc-14 Oct 19, 2024
@derobins
Copy link
Member Author

I'll probably do the warnings in separate PRs before this will be ready to merge

@bmribler bmribler self-requested a review October 19, 2024 21:49
@bmribler bmribler self-requested a review October 19, 2024 23:57
hl/src/H5TB.c Outdated
@@ -3185,7 +3185,7 @@ H5TB_create_type(hid_t loc_id, const char *dset_name, size_t type_size, const si
if (H5TBget_table_info(loc_id, dset_name, &nfields, NULL) < 0)
goto out;

if (NULL == (fnames = (char **)calloc(sizeof(char *), (size_t)nfields)))
if (NULL == (fnames = (char **)calloc((size_t)nfields), sizeof(char *)))
Copy link
Collaborator

@lrknox lrknox Oct 20, 2024

Choose a reason for hiding this comment

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

Suggested change
if (NULL == (fnames = (char **)calloc((size_t)nfields), sizeof(char *)))
if (NULL == (fnames = (char **)calloc((size_t)nfields, sizeof(char *))))

Copy link
Collaborator

@lrknox lrknox Oct 20, 2024

Choose a reason for hiding this comment

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

Misplaced ')' causes build error.

hl/src/H5TB.c Outdated Show resolved Hide resolved
@@ -28,7 +28,7 @@ permissions:

jobs:
check:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we not specify latest and always use a specific version on all CI?

@derobins derobins marked this pull request as draft October 24, 2024 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Testing Code in test or testpar directories, GitHub workflows Merge - To 2.0 This needs to be merged to HDF5 2.0 Priority - 2. Medium ⏹ It would be nice to have this in the next release Type - Improvement Improvements that don't add a new feature or functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants