Redefine 32bit time_t format to signed
It seems that it is signed both on i386 and arm. Avoids a stupid gcc warning on arm: src/udev/udevadm-monitor.c: In function ‘print_device’: src/udev/udevadm-monitor.c:44:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘__time_t {aka long int}’ [-Wformat=] printf("%-6s[%"PRI_TIME".%06ld] %-8s %s (%s)\n", ^
This commit is contained in:
parent
fed527aa5b
commit
6307c39b94
|
@ -49,7 +49,7 @@
|
|||
#if SIZEOF_TIME_T == 8
|
||||
# define PRI_TIME PRIi64
|
||||
#elif SIZEOF_TIME_T == 4
|
||||
# define PRI_TIME PRIu32
|
||||
# define PRI_TIME "li"
|
||||
#else
|
||||
# error Unknown time_t size
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue