NM 1.7.1 - GCC 7.0.1 - format-truncation



1st build with gcc7 on Rawhide

...
src/systemd/src/basic/time-util.c: In function 'format_timespan':
src/systemd/src/basic/time-util.c:506:46: error: '%0*lu' directive output between 1 and 2147483648 bytes may 
cause result to exceed 'INT_MAX' [-Werror=format-truncation=]
                                              "%s"USEC_FMT".%0*"PRI_USEC"%s",
                                              ^~~~
src/systemd/src/basic/time-util.c:506:60: note: format string is defined here
                                              "%s"USEC_FMT".%0*"PRI_USEC"%s",
src/systemd/src/basic/time-util.c:506:46: note: directive argument in the range [0, 18446744073709551614]
                                              "%s"USEC_FMT".%0*"PRI_USEC"%s",
                                              ^~~~
cc1: all warnings being treated as errors
...

NM 1.7.1-20170203git6404c79
gcc (GCC) 7.0.1 20170201 (Red Hat 7.0.1-0.5)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]