Skip to content

utils: Supress GCC array-bound warning#6807

Merged
alan-baker merged 1 commit into
KhronosGroup:mainfrom
spencer-lunarg:spencer-lunarg-fix-gcc-warning
Jul 22, 2026
Merged

utils: Supress GCC array-bound warning#6807
alan-baker merged 1 commit into
KhronosGroup:mainfrom
spencer-lunarg:spencer-lunarg-fix-gcc-warning

Conversation

@spencer-lunarg

Copy link
Copy Markdown
Contributor

closes #6805

We do this same-ish thing in source/utils/hex_floats.h

I looked, there was no changes to timer.h or pass_manager.cpp so not sure what this suddenly is happening, seems to just be something the latest GCC is catching

@johnzupin

Copy link
Copy Markdown
Contributor

This PR looks good on my end. I was able to build with GCC 16.1.1 and older GCC 15.2.1 without issues.

@spencer-lunarg

Copy link
Copy Markdown
Contributor Author

@sudonatalie @alan-baker if possible can we get a review so I can cherry-pick this into the SDK branch

@alan-baker
alan-baker requested a review from sudonatalie July 22, 2026 16:10

@sudonatalie sudonatalie left a comment

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.

LGTM

@alan-baker
alan-baker merged commit a665e21 into KhronosGroup:main Jul 22, 2026
22 checks passed
@spencer-lunarg
spencer-lunarg deleted the spencer-lunarg-fix-gcc-warning branch July 22, 2026 20:33
spencer-lunarg added a commit that referenced this pull request Jul 22, 2026
closes #6805

We do this same-ish thing in `source/utils/hex_floats.h` 

I looked, there was no changes to `timer.h` or `pass_manager.cpp` so not
sure what this suddenly is happening, seems to just be something the
latest GCC is catching
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.

Build error trying to compile on Fedora/Arch with GCC 16.1.1

4 participants