gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"cronolog\" -DVERSION=\"1.6.2\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1 -DHAVE_TM_ZONE=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -
cronolog.c: In function ‘main’:
cronolog.c:213:33: warning: too many arguments for format [-Wformat-extra-args]
213 | fprintf(stderr, "A current log symlink is needed to mantain a symlink to the previous log\n", argv[0]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cronolog.c:301:29: warning: too many arguments for format [-Wformat-extra-args]
301 | fprintf(stderr, "%s: period delay cannot be larger than the rollover period\n", argv[0], start_time);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cronotest.c: In function ‘main’:
cronotest.c:229:29: warning: too many arguments for format [-Wformat-extra-args]
229 | fprintf(stderr, "%s: period delay cannot be larger than the rollover period\n", argv[0], start_time);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cronoutils.c: In function ‘parse_time’:
cronoutils.c:673:36: error: implicit declaration of function ‘strptime’; did you mean ‘strftime’? [-Werror=implicit-function-declaration]
673 | if (check_end((const char *)strptime(time_str, *date_formats, &tm)))
| ^~~~~~~~
| strftime
cronoutils.c:673:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
673 | if (check_end((const char *)strptime(time_str, *date_formats, &tm)))
| ^
cronoutils.c: In function ‘create_link’:
cronoutils.c:214:9: warning: ignoring return value of ‘symlink’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
214 | symlink(pfilename, linkname);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cronoutils.c:218:9: warning: ignoring return value of ‘link’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
218 | link(pfilename, linkname);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [Makefile:440: cronoutils.o] Error 1
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 05:08:41 |
Calls: | 6,706 |
Files: | 12,236 |
Messages: | 5,350,492 |