Skip to content
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

Build failure with GCC 15 (defaults to -std=gnu23) #48

Open
thesamesam opened this issue Nov 17, 2024 · 0 comments
Open

Build failure with GCC 15 (defaults to -std=gnu23) #48

thesamesam opened this issue Nov 17, 2024 · 0 comments

Comments

@thesamesam
Copy link

Upcoming GCC 15 defaults to -std=gnu23. gpm fails to build as follows:

lib/libcurses.c:46:5: error: conflicting types for ‘Gpm_Wgetch’; have ‘int(WINDOW *)’ {aka ‘int(struct _win_st *)’}
   46 | int Gpm_Wgetch(WINDOW *win)
      |     ^~~~~~~~~~
In file included from /var/tmp/portage/sys-libs/gpm-1.20.7-r6/work/gpm-1.20.7-abi_x86_32.x86/src/headers/gpmInt.h:28,
                 from lib/libcurses.c:30:
/var/tmp/portage/sys-libs/gpm-1.20.7-r6/work/gpm-1.20.7-abi_x86_32.x86/src/headers/gpm.h:271:12: note: previous declaration of ‘Gpm_Wgetch’ with type ‘int(void)’
  271 | extern int Gpm_Wgetch();
      |            ^~~~~~~~~~

C23 removes unprototyped functions.

It should be possible to reproduce these with older GCC (and Clang) with
-std=gnu23 or -std=c23 set manually.

gentoo-bot pushed a commit to gentoo/gentoo that referenced this issue Nov 17, 2024
gentoo-bot pushed a commit to gentoo/gentoo that referenced this issue Nov 17, 2024
cfuga pushed a commit to cfuga/gentoo that referenced this issue Nov 21, 2024
cfuga pushed a commit to cfuga/gentoo that referenced this issue Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant