Skip to content

fix(warnings): ensure compilation without warnings with gcc 16 - #10583

Merged
mgallien merged 2 commits into
masterfrom
bugfix/fixWarningsWithGcc16
Sep 1, 2026
Merged

fix(warnings): ensure compilation without warnings with gcc 16#10583
mgallien merged 2 commits into
masterfrom
bugfix/fixWarningsWithGcc16

Conversation

@mgallien

@mgallien mgallien commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

the new gcc 16 will trigger new warnings related to https://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Dialect-Options.html#index-Wsfinae-incomplete

makes sure to fix them

cleaned come include to ensure logical order of inclusions (from most specific to most generic ones)

also makes incremental compilation faster by spliting MOC generated code into files related to each headers instead of a big one see https://forum.qt.io/topic/164690/gcc-16-warnings-about-incomplete-types-in-an-sfinae-context/2?_=1786535933996 also https://www.kdab.com/save-re-compile-time-include-moc-files-in-source-files-video/

Resolves

#

Summary

TODO

  • ...

Checklist

AI (if applicable)

@mgallien mgallien added this to the 35.0.0 milestone Aug 12, 2026
@mgallien
mgallien force-pushed the bugfix/fixWarningsWithGcc16 branch 2 times, most recently from e5c22e8 to 5422844 Compare August 31, 2026 15:15
@mgallien
mgallien force-pushed the bugfix/fixWarningsWithGcc16 branch from 5422844 to c924d1e Compare September 1, 2026 09:10
@mgallien
mgallien enabled auto-merge September 1, 2026 09:11
@mgallien
mgallien force-pushed the bugfix/fixWarningsWithGcc16 branch from c924d1e to 019fa47 Compare September 1, 2026 09:31
@mgallien

mgallien commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator Author

/backport to stable-34.0 please

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Artifact containing the AppImage: nextcloud-appimage-pr-10583.zip

Digest: sha256:c686764702f732858933ef0d89a1bcd35b5bd457215edf11f3d1d63c6ba89e26

To test this change/fix you can download the above artifact file, unzip it, and run it.

Please make sure to quit your existing Nextcloud app and backup your data.

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
the new gcc 16 will trigger new warnings related to
https://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Dialect-Options.html#index-Wsfinae-incomplete

makes sure to fix them

cleaned come include to ensure logical order of inclusions (from most
specific to most generic ones)

also makes incremental compilation faster by spliting MOC generated code
into files related to each headers instead of a big one
see https://forum.qt.io/topic/164690/gcc-16-warnings-about-incomplete-types-in-an-sfinae-context/2?_=1786535933996
also https://www.kdab.com/save-re-compile-time-include-moc-files-in-source-files-video/

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
@mgallien
mgallien force-pushed the bugfix/fixWarningsWithGcc16 branch from b7bb725 to 9459293 Compare September 1, 2026 20:41
@sonarqubecloud

sonarqubecloud Bot commented Sep 1, 2026

Copy link
Copy Markdown

@mgallien
mgallien merged commit c15d4dc into master Sep 1, 2026
20 checks passed
@mgallien
mgallien deleted the bugfix/fixWarningsWithGcc16 branch September 1, 2026 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants