wmmoonclock: fix multiple definitions of some global variables.
commit19f91370568167b5a32d8cd5324d072d1727a6bd
authorJeremy Sowden <jeremy@azazel.net>
Thu, 23 Apr 2020 08:43:31 +0000 (23 09:43 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Thu, 23 Apr 2020 11:03:50 +0000 (23 12:03 +0100)
treefa26492ff6f8bedcbfdbcafd155130ccf21d89ee
parentf3c5aa17809f6da5b5d6864f2383820ad1673810
wmmoonclock: fix multiple definitions of some global variables.

A number of variables are declared in a header with no explicit linkage.
This results in there being definitions of them in multiple object
files, which causes a link failure with GCC 10, since this uses
-fno-common by default.

Add `extern` to the header declarations and separate declarations with
no linkage in xutils.c where they are assigned.

Link: https://bugs.debian.org/957950
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
wmmoonclock/src/xutils.c
wmmoonclock/src/xutils.h