``` --- /tmp/clang/home/tinderbox/img/17.1_systemd-j4_test-20221211-060004/var/tmp/clang/app-misc/rlwrap-0.46.1/clang16-safe.log 2023-02-11 03:38:28.030229993 +0000 +++ /tmp/clang/home/tinderbox/img/17.1_systemd-j4_test-20221211-060004/var/tmp/clang/app-misc/rlwrap-0.46.1/clang16-errors.log 2023-02-11 03:38:28.030229993 +0000 @@ -105,13 +105,12 @@ ignoreme: warning: non-void function does not return a value [-Wreturn-type] int f(char i) { } ^ -ignoreme: warning: incompatible function pointer types passing 'int (char)' to parameter of type 'int (*)(int)' [-Wincompatible-function-pointer-types] +ignoreme: error: incompatible function pointer types passing 'int (char)' to parameter of type 'int (*)(int)' [-Werror,-Wincompatible-function-pointer-types] tputs("a", 1, f); ^ /usr/include/term.h:832:60: note: passing argument to parameter here extern NCURSES_EXPORT(int) tputs (const char *, int, int (*)(int)); ^ ```
That's intentional error: configure:6467: checking argument type of tputs putc function configure:6494: x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -ggdb -ftree-vectorize -std=gnu23 conftest.c >&5 conftest.c: In function 'main': conftest.c:84:15: error: passing argument 3 of 'tputs' from incompatible pointer type [-Wincompatible-pointer-types] 84 | tputs("a", 1, f); | ^ | | | int (*)(char) In file included from conftest.c:69: /usr/include/term.h:829:54: note: expected 'int (*)(int)' but argument is of type 'int (*)(char)' 829 | extern NCURSES_EXPORT(int) tputs (const char *, int, int (*)(int)); | ^~~~~~~~~~~~ ... program skipped ... configure:6501: result: int Should be ignored
Doesn't check if ac value is predefined, can't be fixed by "export ac_cv_type_tputs_putc=int"