Bugzilla – Bug 1224536
Package dia does not build with gcc14 because of a call argument with an incompatible pointer type
Last modified: 2024-07-08 14:20:43 UTC
Gcc 14 newly by default treats as errors a number of situations which before were only warnings. For more information see https://gcc.gnu.org/gcc-14/porting_to.html and meta bug #1220571. Because of this, package fails to compile. This can be seen online at: https://build.opensuse.org/package/live_build_log/home:rguenther:plgrnd/dia/openSUSE_Factory/x86_64 It can be reproduced locally with command: osc build --clean --alternative-project home:rguenther:nextgcc The error (that halts the build) is: [ 66s] custom_object.c: In function 'custom_setup_properties': [ 66s] custom_object.c:382:49: error: passing argument 1 of '(info->props + (sizetype)((long unsigned int)i * 88))->ops->get_data_size' from incompatible pointer type [-Wincompatible-pointer-types] [ 66s] 382 | size = info->props[i].ops->get_data_size (&info->props[i]); [ 66s] | ^~~~~~~~~~~~~~~ [ 66s] | | [ 66s] | PropDescription * {aka struct _PropDescription *} [ 66s] custom_object.c:382:49: note: expected 'Property *' {aka 'struct _Property *'} but argument is of type 'PropDescription *' {aka 'struct _PropDescription *'}
I have submitted https://build.opensuse.org/request/show/1186199 For the record, I have taken all of its content from https://src.fedoraproject.org/rpms/dia/c/0a14169fc36b959598074065678e0126830317f8?branch=rawhide and https://src.fedoraproject.org/rpms/dia/c/c1d313bb4bcc01768b3507e8cbe9eaf50d66057e?branch=rawhide