-
Notifications
You must be signed in to change notification settings - Fork 134
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
[PATCH v5] quell GCC 13.1 bound check warnings #1838
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
odpbuild
changed the title
Quell GCC 13.1.1 bound check warnings
[PATCH v1] Quell GCC 13.1.1 bound check warnings
Jun 9, 2023
odpbuild
changed the title
[PATCH v1] Quell GCC 13.1.1 bound check warnings
[PATCH v2] Quell GCC 13.1.1 bound check warnings
Jun 12, 2023
v2:
|
JereLeppanen
changed the title
[PATCH v2] Quell GCC 13.1.1 bound check warnings
[PATCH v2] Quell GCC 13.1 bound check warnings
Jun 12, 2023
JereLeppanen
changed the title
[PATCH v2] Quell GCC 13.1 bound check warnings
[PATCH v2] quell GCC 13.1 bound check warnings
Jun 15, 2023
JereLeppanen
force-pushed
the
dev/gcc-13
branch
from
October 27, 2023 12:35
2f7c6ca
to
81e7bc1
Compare
odpbuild
changed the title
[PATCH v2] quell GCC 13.1 bound check warnings
[PATCH v3] quell GCC 13.1 bound check warnings
Oct 27, 2023
v3:
|
JereLeppanen
force-pushed
the
dev/gcc-13
branch
from
November 23, 2023 10:10
81e7bc1
to
f3847e3
Compare
odpbuild
changed the title
[PATCH v3] quell GCC 13.1 bound check warnings
[PATCH v4] quell GCC 13.1 bound check warnings
Nov 23, 2023
v4:
|
JannePeltonen
approved these changes
Nov 23, 2023
Quell false positive GCC 13.1 -Warray-bounds and -Wstringop-overflow warnings. The warnings still appear during LTO linking, because GCC does not carry diagnostic pragmas to the linking stage. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
…tion When compiling with GCC 13.1 and -Wpedantic, struct sset_info causes the error "invalid use of structure with flexible array member [-Werror=pedantic]". The flexible array member in this case is the data member of struct ethtool_sset_info. In order to reserve space for it, turn sset_info into a union, and make the next member in the union the size of struct ethtool_sset_info and the data. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
Also c++ programs need -Wno-error=stringop-overflow flag, in order to avoid errors during linking, when using LTO. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
JereLeppanen
force-pushed
the
dev/gcc-13
branch
from
December 21, 2023 13:09
f3847e3
to
f669ef5
Compare
odpbuild
changed the title
[PATCH v4] quell GCC 13.1 bound check warnings
[PATCH v5] quell GCC 13.1 bound check warnings
Dec 21, 2023
v5:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Quell a few -Warray-bounds and -Wstringop-overflow warnings with GCC 13.1, with and without -Wpedantic.
The question here is do we keep adding these pragmas to the code or do we just disable -Warray-bounds and -Wstringop-overflow?