-
-
Notifications
You must be signed in to change notification settings - Fork 950
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
build(linux): disable GCC 12 Wrestrict warning #2925
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2925 +/- ##
======================================
Coverage 9.66% 9.66%
======================================
Files 97 97
Lines 17556 17556
Branches 8230 8230
======================================
Hits 1696 1696
+ Misses 15076 15068 -8
- Partials 784 792 +8
Flags with carried forward coverage won't be shown. Click here to find out more. |
Is this only occurring in the flatpak build? |
The warning itself occurs on GCC12 only, which is only used in flatpak, but I have not checked the dockers as they do not run in forks. |
They should, but not from your master branch. You'd need to make a PR into the master and replicate how we run things. |
@ReenigneArcher This bug affects both |
99a3dff
to
444dfe2
Compare
Description
This is an actual "fix" for #2919 and other places where the warning cannot be resolved easily (https://github.com/FrogTheFrog/Sunshine/actions/runs/10126414768/job/28003050801).
There is a bug for GCC 12 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105651) which unfortunately is used by flatpak.
Since we are treating all warnings as errors, such a bogus warning will prevent Sunshine from compiling. In some cases it is impossible to avoid this warning as it happens somewhere outside of Sunshine's code, like GTest:
In this case, GTest is calling
CanonicalizeForStdLibVersioning
to pretty print a type name. Even if the function would never reach the "bad code" branch, it still produces a warning and there is no way around it.Type of Change
.github/...
)Checklist