From: Ben Pfaff Date: Sat, 17 Nov 2018 04:27:30 +0000 (-0800) Subject: psppire: Fix multiple definitions of align_enum_type and two others. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=614bbfbc4be1f4f47d55d3fbee9ae20f3a9955bb;p=pspp psppire: Fix multiple definitions of align_enum_type and two others. These were defined in both psppire-dict.c and widgets.c, which causes a problem building with -fno-common (which is desirable because it allows Address Sanitizer to work better). --- diff --git a/src/ui/gui/widgets.c b/src/ui/gui/widgets.c index 26a5dac4fd..6ce1292490 100644 --- a/src/ui/gui/widgets.c +++ b/src/ui/gui/widgets.c @@ -171,9 +171,9 @@ enum_to_string (const GValue *src, GValue *dest) -GType align_enum_type; -GType measure_enum_type; -GType role_enum_type; +extern GType align_enum_type; +extern GType measure_enum_type; +extern GType role_enum_type; extern const GEnumValue align[];