]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfsprogs: do not redeclare globals provided by libraries
authorEric Sandeen <sandeen@redhat.com>
Thu, 30 Jan 2020 18:34:17 +0000 (13:34 -0500)
committerEric Sandeen <sandeen@redhat.com>
Thu, 30 Jan 2020 18:34:17 +0000 (13:34 -0500)
commit123b851389ef9a012a469ef982ac7b819db59342
tree54ca3ea8d9ad2c78421f953f89162805370e1e47
parent91c0b8d90f30e5492037ec992f5baff9c730557d
xfsprogs: do not redeclare globals provided by libraries

In each of these cases, db, logprint, and mdrestore are redeclaring
as a global variable something which was already provided by a
library they link with.

gcc now defaults to -fno-common and trips over these global variables
which are declared in utilities as well as in libxfs and libxlog, and
it causes the build to fail.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
db/init.c
logprint/logprint.c
mdrestore/xfs_mdrestore.c