Source: linux86
Version: 0.16.17-3.7
Severity: serious
/usr/include/time.h:186:14: note: expected ‘const time_t *’ {aka ‘const long
long int *’} but argument is of type ‘long int *’
186 | extern char *__REDIRECT_NTH (ctime, (const time_t *__timer), __ctime64);
| ^~~~~~~~~~~~~~
ar.c: In function ‘touch_symdef_member’:
ar.c:1207:38: warning: format ‘%ld’ expects argument of type ‘long int’, but
argument 3 has type ‘__time64_t’ {aka ‘long long int’} [-Wformat=]
1207 | sprintf (symdef_header.ar_date, "%ld", statbuf.st_mtime);
| ~~^
| |
| long int
| %lld
ar.c: In function ‘read_old_symdefs’:
ar.c:1599:7: warning: variable ‘val’ set but not used
[-Wunused-but-set-variable]
1599 | int val;
| ^~~
ar.c: In function ‘header_from_map’:
ar.c:1104:3: warning: ‘strncpy’ output truncated before terminating nul copying
2 bytes from a string of the same length [-Wstringop-truncation]
1104 | strncpy (header->ar_fmag, ARFMAG, sizeof (header->ar_fmag));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~