diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2019-08-31 10:35:08 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2019-08-31 11:01:46 -0700 |
commit | 7791005544836f93542e8277ad5897f8f5920f05 (patch) | |
tree | b0c93947951d98f1af820b33094374ddd1658188 /src/xfns.c | |
parent | 2de46be6620174e6e2cf4ed397e7cf901d1f1a7a (diff) | |
download | emacs-7791005544836f93542e8277ad5897f8f5920f05.tar.gz |
Check instead of relying on NOTREACHED
NOTREACHED was designed for traditional lint decades ago,
and _Noreturn now normally subsumes its function.
In the one case in Emacs where NORETURN might help and _Noreturn does
not, check for NOTREACHED instead of assuming it.
* lib-src/etags.c (main):
* src/xterm.c (x_connection_closed):
Remove NOTREACHED after a call to a _Noreturn function, as NOTREACHED
is no longer needed there. Also, one of the NOTREACHEDs was
misplaced, which defeated traditional lint checking anyway.
* lib-src/pop.c (pop_getline): Redo so as to not need NOTREACHED.
* src/emacs.c (main): Use eassume (false) rather than NOTREACHED,
so that running with ENABLE_CHECKING catches any internal error
causing the toplevel Frecursive_edit to return.
Diffstat (limited to 'src/xfns.c')
0 files changed, 0 insertions, 0 deletions