[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gambas-bugtracker] Bug #2989: c23 compilation failures
[Thread Prev] | [Thread Next]
- Subject: [Gambas-bugtracker] Bug #2989: c23 compilation failures
- From: <bugtracker@xxxxxxxxxxxxxx>
- Date: Thu, 13 Feb 2025 17:39:20 GMT
- To: spotrh@xxxxxxxxx,bugtracker@xxxxxxxxxxxxxxxxxxxxxx
http://gambaswiki.org/bugtracker/edit?object=BUG.2989&from=L21haW4- Tom CALLAWAY reported a new bug. Summary ------- c23 compilation failures Type : Bug Priority : Medium Gambas version : Master Product : Language Description ----------- Fedora is moving to gcc 15 in rawhide, which has -std=c23 by default. Gambas3 does not compile with this revision of the C standard because it uses functions without arguments defined. gbx_event.c: In function ‘EVENT_check_post’: gbx_event.c:247:26: error: too many arguments to function ‘save.func’; expected 0, have 1 247 | (*save.func)(save.param); | ~^~~~~~~~~~~ ~~~~~~~~~~ In file included from gbx_event.c:32: gbx_event.h:41:12: note: declared here 41 | void (*func)(); | ^~~~ gbx_event.c:249:26: error: too many arguments to function ‘save.func’; expected 0, have 2 249 | (*save.func)(save.param, save.param2); | ~^~~~~~~~~~~ ~~~~~~~~~~ gbx_event.h:41:12: note: declared here 41 | void (*func)(); | ^~~~ Easy enough to work around, it compiles fine with -std=c17 in CFLAGS, but probably something you'll want to fix. System information ------------------ Fedora x86_64, though, that probably doesn't matter here. ----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----
[Gambas-bugtracker] Bug #2989: c23 compilation failures | <bugtracker@xxxxxxxxxxxxxx> |
[Gambas-bugtracker] Bug #2989: c23 compilation failures | <bugtracker@xxxxxxxxxxxxxx> |