linux: Fix i686 with gcc6
commitdbc4b032dc5c4ef0c46e9de23c46b1698bad4412
authorAdhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Tue, 25 Jul 2023 15:16:40 +0000 (25 12:16 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 26 Jul 2023 12:45:55 +0000 (26 09:45 -0300)
tree487931b85a4190471e2ff669ba40b286f6684a07
parent0b1a76c57782a03685f405ee53e6d5f691d69298
linux: Fix i686 with gcc6

On __convert_scm_timestamps GCC 6 issues an warning that tvts[0]/tvts[1]
maybe be used uninitialized, however it would be used if type is set to a
value different than 0 (done by either COMPAT_SO_TIMESTAMP_OLD or
COMPAT_SO_TIMESTAMPNS_OLD) which will fallthrough to 'common' label.

It does not show with gcc 7 or more recent versions.

Checked on i686-linux-gnu.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
sysdeps/unix/sysv/linux/convert_scm_timestamps.c