Created attachment 909360 [details] build failure log gcc-15.0.0_pre20241117 defaults to using -std=gnu23 (stricter) Error: lqr_energy.c:452:1: error: conflicting types for 'lqr_carver_generate_rcache_bright'; have 'gdouble *(LqrCarver *)' {aka 'double *(struct _LqrCarver *)'} 452 | lqr_carver_generate_rcache_bright(LqrCarver *r) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../lqr/lqr_energy.h:27, from lqr_energy.c:32: ../lqr/lqr_energy_priv.h:59:10: note: previous declaration of 'lqr_carver_generate_rcache_bright' with type 'gdouble *(void)' {aka 'double *(void)'} 59 | gdouble *lqr_carver_generate_rcache_bright(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lqr_energy.c:471:1: error: conflicting types for 'lqr_carver_generate_rcache_luma'; have 'gdouble *(LqrCarver *)' {aka 'double *(struct _LqrCarver *)'} 471 | lqr_carver_generate_rcache_luma(LqrCarver *r) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../lqr/lqr_energy_priv.h:60:10: note: previous declaration of 'lqr_carver_generate_rcache_luma' with type 'gdouble *(void)' {aka 'double *(void)'} 60 | gdouble *lqr_carver_generate_rcache_luma(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lqr_energy.c:490:1: error: conflicting types for 'lqr_carver_generate_rcache_rgba'; have 'gdouble *(LqrCarver *)' {aka 'double *(struct _LqrCarver *)'} 490 | lqr_carver_generate_rcache_rgba(LqrCarver *r) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../lqr/lqr_energy_priv.h:61:10: note: previous declaration of 'lqr_carver_generate_rcache_rgba' with type 'gdouble *(void)' {aka 'double *(void)'} 61 | gdouble *lqr_carver_generate_rcache_rgba(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lqr_energy.c:511:1: error: conflicting types for 'lqr_carver_generate_rcache_custom'; have 'gdouble *(LqrCarver *)' {aka 'double *(struct _LqrCarver *)'} 511 | lqr_carver_generate_rcache_custom(LqrCarver *r) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../lqr/lqr_energy_priv.h:62:10: note: previous declaration of 'lqr_carver_generate_rcache_custom' with type 'gdouble *(void)' {aka 'double *(void)'} 62 | gdouble *lqr_carver_generate_rcache_custom(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lqr_energy.c:532:1: error: conflicting types for 'lqr_carver_generate_rcache'; have 'gdouble *(LqrCarver *)' {aka 'double *(struct _LqrCarver *)'} 532 | lqr_carver_generate_rcache(LqrCarver *r) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../lqr/lqr_energy_priv.h:63:10: note: previous declaration of 'lqr_carver_generate_rcache' with type 'gdouble *(void)' {aka 'double *(void)'} 63 | gdouble *lqr_carver_generate_rcache(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../lqr/lqr_all.h:30, from lqr_carver.c:29: lqr_carver.c: In function 'lqr_carver_build_emap': lqr_carver.c:577:35: error: too many arguments to function 'lqr_carver_generate_rcache' 577 | LQR_CATCH_MEM(r->rcache = lqr_carver_generate_rcache(r)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../lqr/lqr_base.h:83:8: note: in definition of macro 'LQR_CATCH_MEM' 83 | if ((expr) == NULL) \ | ^~~~ In file included from ../lqr/lqr_energy.h:27, from ../lqr/lqr_all.h:33: ../lqr/lqr_energy_priv.h:63:10: note: declared here 63 | gdouble *lqr_carver_generate_rcache(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:396: lqr_energy.lo] Error 1 Steps to Reproduce: emerge =gcc-15.0.0_pre20241117 emerge =media-libs/liblqr-0.4.2-r1 works is emerged with CFLAGS="${CFLAGS} -std=gnu17" also works with =gcc-15.0.0_pre20241110
Created attachment 909361 [details] emerge --info