bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

New no return behaviour breaks dialog


From: Dr. Werner Fink
Subject: New no return behaviour breaks dialog
Date: Mon, 22 Mar 2021 13:18:30 +0100

Hmmm ...

[   62s]                  from timebox.c:24:
[   62s] ./dialog.h: In function 'dlg_exit':
[   62s] ./dialog.h:866:1: error: '_Noreturn' in empty declaration
[   62s]   866 | extern void dlg_exit(int /*code*/) GCC_NORETURN;
[   62s]       | ^~~~~~
[   62s] In file included from ./dialog.h:78,
[   62s]                  from ./dlg_internals.h:27,
[   62s]                  from timebox.c:24:
[   62s] /usr/include/ncursesw/curses.h:75:22: warning: empty declaration
[   62s]    75 | #define GCC_NORETURN _Noreturn
[   62s]       |                      ^~~~~~~~~
[   62s] ./dialog.h:866:36: note: in expansion of macro 'GCC_NORETURN'
[   62s]   866 | extern void dlg_exit(int /*code*/) GCC_NORETURN;

That is ./ncurses-6.2/include/curses.h.in
and might be something like this ``__attribute__ ((noreturn));``
or requires including <sys/cdefs.h>

-- 
  "Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool." -- Edward Burr

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]