-
Notifications
You must be signed in to change notification settings - Fork 312
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
With gcc 14 around the corner, we really need to fix at least some compiler warnings #959
Comments
gcc 14 is coming, and will enable some warnings as errors by default. The mass rebuilds for the upcoming Fedora 40 have exposed some of that already, e.g. https://bugzilla.redhat.com/show_bug.cgi?id=2261324 or https://koji.fedoraproject.org/koji/taskinfo?taskID=112078167 (https://kojipkgs.fedoraproject.org//work/tasks/8282/112078282/build.log). We need a systematic effort to eliminate compiler warnings, both relatively quickly to keep libgphoto2 building with gcc 14, and then more completely for our own sanity and peace of mind. Ideally, we will eventually build with zero warnings, but that will take a lot of effort. I recently tried looking into some integer warnings, but we have a lot of them and many are systematic issues, not just the occasional forgotten cast from Things like comparing Anyway, such things should be solvable by properly using |
currently openSUSE tumbleweed does not have gcc14 yet, so I can take it up once it gets it. |
I have set up a VM with Fedora 40 for a quick check, but I could not reproduce the original post. I want to merge the two |
Actually reported issue is result of use latest devel glibc with Instead wasting time on create Fedora build env better would be just sort out those warnings. |
Not sure why trying to reproduce a reported problem would a waste of time... Anyway, I could not reproduce the issue using the Fedora 40 packages
running
on libgphoto2 commit 846ae9f. What exactly is "[the] latest devel glibc"? What libgphoto2 commit are you building? Using what commands? |
Snapshot of the glibc which is now used in fedora rawhide. |
Another thing, this time building for i686. Quoting https://src.fedoraproject.org/rpms/libgphoto2/pull-request/5:
|
This is already fixed; see #941 |
its not the -D_FORTIFY_SOURCE=3 usually turning on errors, but try -fhardened or so which is new with gcc14 |
This:
is a downstream-only thing in Fedora, related to its use of |
I'm not using such option. |
Why not tolerating some exact warning is kind of bug? 🤔 |
BTW looks lile with latest glibc and gcc 14.x test suite build fails because it cannot be build wit
-D_FORTIFY_SOURCE=3
which turns-Wimplicit-int
and-Wimplicit-function-declaration
into errorsOriginally posted by @kloczek in #773 (comment)
The text was updated successfully, but these errors were encountered: