Re: [Bug-tar] GCC 7 warnings

2017-09-08 Thread Paul Eggert
Pavel Raiskup wrote: On Friday, September 8, 2017 12:06:22 PM CEST Sergey Poznyakoff wrote: Paul Eggert ha escrit: I suggest ignoring the warning globally by pragma (i.e., in configure.ac) since it's more trouble than it's worth for tar. Agreed. Please have a look at the attached patch th

Re: [Bug-tar] GCC 7 warnings

2017-09-08 Thread Pavel Raiskup
On Friday, September 8, 2017 12:06:22 PM CEST Sergey Poznyakoff wrote: > Paul Eggert ha escrit: > > > I suggest ignoring the warning globally by pragma (i.e., in > > configure.ac) since it's more trouble than it's worth for tar. > > Agreed. Please have a look at the attached patch then. Pavel

Re: [Bug-tar] GCC 7 warnings

2017-09-08 Thread Sergey Poznyakoff
Paul Eggert ha escrit: > I suggest ignoring the warning globally by pragma (i.e., in > configure.ac) since it's more trouble than it's worth for tar. Agreed. Regards, Sergey

Re: [Bug-tar] GCC 7 warnings

2017-09-08 Thread Paul Eggert
Pavel Raiskup wrote: The warning can be silenced by e.g. min(0, max(, tm->tm_year)) hacks or by ignoring the warning globally/locally by pragma. Please silence this warning, or suggest your preferred fix and I'll have a look at it. I suggest ignoring the warning globally by pragma (i.e., i

[Bug-tar] GCC 7 warnings

2017-09-07 Thread Pavel Raiskup
Hello maintainers, building from git with GCC 7 is a bit more complited again, as gcc 7 is more -Werror sensitive. I've attached a patch that looks like worth having pushed to me. There's one remaining issue: list.c: In function ‘tartime’: list.c:1053:33: error: ‘%02d’ directive