wmclockmon: fix global variables causing linkage failure
commitead41b2051c144959ba879106714624eb817c580
authorJeremy Sowden <jeremy@azazel.net>
Sun, 19 May 2024 16:24:15 +0000 (19 17:24 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 19 May 2024 17:12:02 +0000 (19 18:12 +0100)
treee9821fa5e118bc8c599bd9d33b429300616e5053
parent7f042fb7959f69cfded6c61e098653d086e1d2cd
wmclockmon: fix global variables causing linkage failure

A number of global variables are declared in headers with no explicit linkage.
This results in there being definitions of them in multiple object files and
causes linking to fail under gcc-10.

Add `extern` to the header declarations and separate declarations with no
linkage in files where they are assigned.
wmclockmon/wmclockmon-cal/main.c
wmclockmon/wmclockmon-cal/main.h
wmclockmon/wmclockmon-cal/mainwindow.c
wmclockmon/wmclockmon-cal/mainwindow.h
wmclockmon/wmclockmon-config/edit.c
wmclockmon/wmclockmon-config/edit.h
wmclockmon/wmclockmon-config/main.c
wmclockmon/wmclockmon-config/mainwindow.c
wmclockmon/wmclockmon-config/mainwindow.h
wmclockmon/wmclockmon-config/tools.c
wmclockmon/wmclockmon-config/variables.h