psppire: Fix multiple definitions of align_enum_type and two others.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 17 Nov 2018 04:27:30 +0000 (20:27 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 26 Nov 2018 00:25:19 +0000 (16:25 -0800)
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).

src/ui/gui/widgets.c

index 26a5dac4fd33f79c30545d1d3dae304727c71bdd..6ce12924905d391ddf1d01426f75b926b0e63f6d 100644 (file)
@@ -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[];