--- clang-14.log 2022-11-02 22:36:15.746754990 +1100 +++ clang-15.log 2022-11-02 22:36:15.747754986 +1100 @@ -1,8 +1,8 @@ -comptest118.c:3:24: warning: call to undeclared library function 'strrchr' with type 'char *(const char *, int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +comptest118.c:3:24: error: call to undeclared library function 'strrchr' with type 'char *(const char *, int)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] int main() { char *x = strrchr("test", 'e'); if (x == NULL) return 0; else return 1; } ^ comptest118.c:3:24: note: include the header or explicitly provide a declaration for 'strrchr' -comptest118.c:3:24: warning: call to undeclared library function 'strrchr' with type 'char *(const char *, int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +comptest118.c:3:24: error: call to undeclared library function 'strrchr' with type 'char *(const char *, int)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] int main() { char *x = strrchr("test", 'e'); if (x == NULL) return 0; else return 1; } ^ comptest118.c:3:24: note: include the header or explicitly provide a declaration for 'strrchr'