--- clang-14.log 2022-11-02 22:36:11.850767595 +1100 +++ clang-15.log 2022-11-02 22:36:11.850767595 +1100 @@ -0,0 +1,26 @@ +config.c:8:18: warning: '/*' within block comment [-Wcomment] +/*#define DEBUG /* Provides extra debugging info */ + ^ +config.c:17:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] +int exists(dir, file) + ^ +config.c:32:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] +main(argc, argv) +^ +int +config.c:116:7: error: call to undeclared function 'grep'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] + if ( grep(INCLUDE, "utmp.h", "ut_host") ) { + ^ +config.c:176:8: error: call to undeclared function 'access'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] + if ( (access("/var/run/utmp", (R_OK|W_OK)) == 0) && getuid() ) + ^ +config.c:176:54: error: call to undeclared function 'getuid'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] + if ( (access("/var/run/utmp", (R_OK|W_OK)) == 0) && getuid() ) + ^ +config.c:32:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] +main(argc, argv) +^ +config.c:257:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] +int grep(dir, file, word) + ^ +4 warnings and 4 errors generated.