Fix #746: src/options: fix build failure against gcc-10
authorSergei Trofimovich <>
Sun, 26 Jan 2020 11:05:18 +0000 (11:05 +0000)
committerColin Clark <cclark@carbon>
Sun, 26 Jan 2020 11:05:18 +0000 (11:05 +0000)
https://github.com/BestImageViewer/geeqie/pull/746

src/bar_exif.h
src/options.c
src/options.h

index 63c30d4..1395e84 100644 (file)
@@ -28,9 +28,6 @@ void bar_pane_exif_update_from_config(GtkWidget *pane, const gchar **attribute_n
 void bar_pane_exif_entry_add_from_config(GtkWidget *pane, const gchar **attribute_names, const gchar **attribute_values);
 
 /* these are exposed for when duplication of the exif bar's text is needed */
-
-const gchar **bar_exif_key_list;
-const gint bar_exif_key_count;
 GList *bar_pane_exif_list();
 
 #endif
index 9945938..bab26ac 100644 (file)
@@ -32,6 +32,9 @@
 #include "ui_fileops.h"
 #include "window.h"
 
+ConfOptions *options;
+CommandLine *command_line;
+
 ConfOptions *init_options(ConfOptions *options)
 {
        gint i;
index fcfe961..02ff8fa 100644 (file)
@@ -329,8 +329,8 @@ struct _ConfOptions
        GList *disabled_plugins;
 };
 
-ConfOptions *options;
-CommandLine *command_line;
+extern ConfOptions *options;
+extern CommandLine *command_line;
 
 ConfOptions *init_options(ConfOptions *options);
 void setup_default_options(ConfOptions *options);