gcc -O2 -g -Wall -pipe -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection postmark-1.53.c -o postmark
postmark-1.53.c:113:20: warning: missing braces around initializer [-Wmissing-braces]
113 | cmd command_list[]={ /* table of CLI commands */
| ^
postmark-1.53.c: In function ‘parse_weight’:
postmark-1.53.c:287:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
287 | if (split=strrchr(params,' '))
| ^~~~~
postmark-1.53.c: In function ‘add_location’:
postmark-1.53.c:306:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
306 | if (new_file_system=(file_system *)calloc(1,sizeof(file_system)))
| ^~~~~~~~~~~~~~~
postmark-1.53.c: In function ‘verbose_report’:
postmark-1.53.c:535:19: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘time_t’ {aka ‘long int’} [-Wformat=]
535 | fprintf(fp,"\t%d seconds total\n",elapsed);
| ~^ ~~~~~~~
| | |
| int time_t {aka long int}
| %ld
postmark-1.53.c:536:19: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘time_t’ {aka ‘long int’} [-Wformat=]
536 | fprintf(fp,"\t%d seconds of transactions (%d per second)\n",t_elapsed,
| ~^ ~~~~~~~~~
| | |
| int time_t {aka long int}
| %ld
postmark-1.53.c:536:47: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘time_t’ {aka ‘long int’} [-Wformat=]
536 | fprintf(fp,"\t%d seconds of transactions (%d per second)\n",t_elapsed,
| ~^
| |
| int
| %ld
537 | transactions/t_elapsed);
| ~~~~~~~~~~~~~~~~~~~~~~
| |
| time_t {aka long int}
postmark-1.53.c:540:31: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘time_t’ {aka ‘long int’} [-Wformat=]
540 | fprintf(fp,"\t%d created (%d per second)\n",files_created,
| ~^
| |
| int
| %ld
541 | files_created/elapsed);
| ~~~~~~~~~~~~~~~~~~~~~
| |
| time_t {aka long int}
postmark-1.53.c:546:56: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘time_t’ {aka ‘long int’} [-Wformat=]
546 | fprintf(fp,"\t\tMixed with transactions: %d files (%d per second)\n",
| ~^
| |
| int
| %ld
547 | files_created-simultaneous,(files_created-simultaneous)/t_elapsed);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| time_t {aka long int}
postmark-1.53.c:548:28: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘time_t’ {aka ‘long int’} [-Wformat=]
548 | fprintf(fp,"\t%d read (%d per second)\n",files_read,files_read/t_elapsed);
| ~^ ~~~~~~~~~~~~~~~~~~~~
| | |
| int time_t {aka long int}
| %ld
postmark-1.53.c:549:32: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘time_t’ {aka ‘long int’} [-Wformat=]
549 | fprintf(fp,"\t%d appended (%d per second)\n",files_appended,
| ~^
| |
| int
| %ld
550 | files_appended/t_elapsed);
| ~~~~~~~~~~~~~~~~~~~~~~~~
| |
| time_t {aka long int}
postmark-1.53.c:551:31: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘time_t’ {aka ‘long int’} [-Wformat=]
551 | fprintf(fp,"\t%d deleted (%d per second)\n",files_deleted,
| ~^
| |
| int
| %ld
552 | files_deleted/elapsed);
| ~~~~~~~~~~~~~~~~~~~~~
| |
| time_t {aka long int}
postmark-1.53.c:557:56: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘time_t’ {aka ‘long int’} [-Wformat=]
557 | fprintf(fp,"\t\tMixed with transactions: %d files (%d per second)\n",
| ~^
| |
| int
| %ld
558 | files_deleted-deleted,(files_deleted-deleted)/t_elapsed);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| time_t {aka long int}
postmark-1.53.c: In function ‘terse_report’:
postmark-1.53.c:577:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘time_t’ {aka ‘long int’} [-Wformat=]
577 | fprintf(fp,"%d %d %.2f ", elapsed, t_elapsed,
| ~^ ~~~~~~~
| | |
| int time_t {aka long int}
| %ld
postmark-1.53.c:577:20: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘time_t’ {aka ‘long int’} [-Wformat=]
577 | fprintf(fp,"%d %d %.2f ", elapsed, t_elapsed,
| ~^ ~~~~~~~~~
| | |
| int time_t {aka long int}
| %ld
postmark-1.53.c: In function ‘write_blocks’:
postmark-1.53.c:622:7: error: implicit declaration of function ‘write’; did you mean ‘fwrite’? [-Werror=implicit-function-declaration]
622 | write(fd,file_source+offset,write_block_size);
| ^~~~~
| fwrite
postmark-1.53.c:628:4: error: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Werror=implicit-function-declaration]
628 | close(fd);
| ^~~~~
| pclose
postmark-1.53.c: In function ‘create_file_name’:
postmark-1.53.c:666:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
666 | sprintf(conversion,"s%d%s",RND(subdirectories),SEPARATOR);
| ~^
| |
| int
| %ld
postmark-1.53.c: In function ‘read_file’:
postmark-1.53.c:751:13: error: implicit declaration of function ‘read’; did you mean ‘fread’? [-Werror=implicit-function-declaration]
751 | read(fd,read_buffer,read_block_size);
| ^~~~
| fread
postmark-1.53.c: In function ‘create_subdirectories’: postmark-1.53.c:76:18: error: implicit declaration of function ‘mkdir’ [-Werror=implicit-function-declaration]
76 | #define MKDIR(x) mkdir(x,0700)
| ^~~~~
postmark-1.53.c:911:10: note: in expansion of macro ‘MKDIR’
911 | MKDIR(dir_name);
| ^~~~~
postmark-1.53.c: In function ‘delete_subdirectories’: postmark-1.53.c:940:10: error: implicit declaration of function ‘rmdir’ [-Werror=implicit-function-declaration]
940 | rmdir(dir_name);
| ^~~~~
postmark-1.53.c: In function ‘cli_load’:
postmark-1.53.c:1056:7: error: implicit declaration of function ‘read_config_file’ [-Werror=implicit-function-declaration]
1056 | read_config_file(param,buffer,0);
| ^~~~~~~~~~~~~~~~
postmark-1.53.c: In function ‘cli_read_line’:
postmark-1.53.c:1154:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
1154 | if (result=fgets(buffer,size,stdin)) /* read line safely */
| ^~~~~~
postmark-1.53.c: In function ‘read_config_file’:
postmark-1.53.c:1204:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
1204 | if (fp=fopen(filename,"r")) /* open config file */
| ^~
postmark-1.53.c: At top level:
postmark-1.53.c:1224:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
1224 | main(argc,argv)
| ^~~~
cc1: some warnings being treated as errors
make[1]: *** [Makefile:11: postmark] Error 1
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 08:41:34 |
Calls: | 6,666 |
Files: | 12,213 |
Messages: | 5,336,260 |