--- clang-14.log 2022-11-02 22:36:17.935747924 +1100 +++ clang-15.log 2022-11-02 22:36:17.935747924 +1100 @@ -1,30 +1,30 @@ -ignoreme: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] +ignoreme: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] main() { exit(0); strerror(0); } ^ int -ignoreme: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] +ignoreme: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] main() { exit(0); } ^ int -ignoreme: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +ignoreme: error: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] main() { exit(0); } ^ ignoreme: note: include the header or explicitly provide a declaration for 'exit' -2 warnings generated. -ignoreme: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] +2 errors generated. +ignoreme: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] main() { exit(0); } ^ int -ignoreme: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +ignoreme: error: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] main() { exit(0); } ^ ignoreme: note: include the header or explicitly provide a declaration for 'exit' -2 warnings generated. -ignoreme: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] +2 errors generated. +ignoreme: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] main() { exit(0); rindex(0, 0); bzero(0, 0); } ^ int -ignoreme: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +ignoreme: error: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] main() { exit(0); rindex(0, 0); bzero(0, 0); } ^ ignoreme: note: include the header or explicitly provide a declaration for 'exit' @@ -35,31 +35,31 @@ main() { exit(0); rindex(0, 0); bzero(0, 0); } ^ ignoreme: note: parenthesize the second argument to silence -4 warnings generated. -ignoreme: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] +2 warnings and 2 errors generated. +ignoreme: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] main() { uid_t x; exit(0); } ^ int -ignoreme: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +ignoreme: error: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] main() { uid_t x; exit(0); } ^ ignoreme: note: include the header or explicitly provide a declaration for 'exit' -2 warnings generated. -ignoreme: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] +2 errors generated. +ignoreme: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] main() { char *p = (char *) alloca(1); exit(0); } ^ int -ignoreme: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +ignoreme: error: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] main() { char *p = (char *) alloca(1); exit(0); } ^ ignoreme: note: include the header or explicitly provide a declaration for 'exit' -2 warnings generated. -ignoreme: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] +2 errors generated. +ignoreme: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] main() { exit(0); } ^ int -ignoreme: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +ignoreme: error: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] main() { exit(0); } ^ ignoreme: note: include the header or explicitly provide a declaration for 'exit' -2 warnings generated. +2 errors generated.