Skip to content

Conversation

@shugo
Copy link
Member

@shugo shugo commented Jun 3, 2025

gcc -c -O4 -Wall -pedantic -I.. -DPDC_WIDE ../pdcurses/addch.c
In file included from ../curspriv.h:10,
                 from ../pdcurses/addch.c:3:
../curses.h:86:23: error: 'bool' cannot be defined via 'typedef'
   86 | typedef unsigned char bool;
      |                       ^~~~
../curses.h:86:23: note: 'bool' is a keyword with '-std=c23' onwards
../curses.h:86:1: warning: useless type name in empty declaration
   86 | typedef unsigned char bool;
      | ^~~~~~~

```
gcc -c -O4 -Wall -pedantic -I.. -DPDC_WIDE ../pdcurses/addch.c
In file included from ../curspriv.h:10,
                 from ../pdcurses/addch.c:3:
../curses.h:86:23: error: 'bool' cannot be defined via 'typedef'
   86 | typedef unsigned char bool;
      |                       ^~~~
../curses.h:86:23: note: 'bool' is a keyword with '-std=c23' onwards
../curses.h:86:1: warning: useless type name in empty declaration
   86 | typedef unsigned char bool;
      | ^~~~~~~
```
@shugo shugo merged commit bdaa65d into master Jun 3, 2025
9 checks passed
@shugo shugo deleted the fix_c23_error branch June 3, 2025 04:40
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

Successfully merging this pull request may close these issues.

2 participants