History log of /netbsd-src/tests/usr.bin/xlint/lint1/gcc_builtin_overflow.c (Results 1 – 3 of 3)
Revision Date Author Comments
# e6298b92 07-Jul-2023 rillig <rillig@NetBSD.org>

lint: warn about function definitions without header declaration

The existing warning was only issued for function declarations, not for
function definitions.

The interesting change in the tests is

lint: warn about function definitions without header declaration

The existing warning was only issued for function declarations, not for
function definitions.

The interesting change in the tests is in msg_351.c. Many other tests
use non-static functions due to their syntactic brevity. In these
tests, the warning is disabled individually, to allow new functions to
be added without generating warning 351.

show more ...


# a388352d 03-Sep-2021 rillig <rillig@NetBSD.org>

lint: set the return type of __builtin_*_overflow to bool, not int

Needed for inetd.c in strict bool mode.


# 9665ac6a 03-Sep-2021 rillig <rillig@NetBSD.org>

tests/lint: test GCC builtins for overflow in strict bool mode

Seen in inetd.c.