]> git.ipfire.org Git - thirdparty/coreutils.git/commit
expr: lint cleanup, and introducing main_exit
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 31 Jan 2022 16:42:07 +0000 (08:42 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 31 Jan 2022 20:07:38 +0000 (12:07 -0800)
commitafa93e88044ef8d384b9b8b65b646add0fce905a
tree79ba0419024fc8944f2ec7774e1aab66b081b445
parenta42a0391329313482e0cee61c78b69e6c1500cad
expr: lint cleanup, and introducing main_exit

This introduces a new macro main_exit, which is useful
for pacifying gcc -fsanitizer=lint and in some cases
means we can remove some ‘IF_LINT’ and ‘ifdef lint’ code.
* src/expr.c (main): Use main_exit, not return.
(docolon): Omit an IF_LINT that GCC no longer needs.
* src/system.h (main_exit): New macro.
src/expr.c
src/system.h