make_menu_xml() is only used if we HAVE_LUA; only define it when we'll use it.
authorJeff Morriss <jeff.morriss.ws@gmail.com>
Thu, 23 May 2013 00:33:33 +0000 (00:33 -0000)
committerJeff Morriss <jeff.morriss.ws@gmail.com>
Thu, 23 May 2013 00:33:33 +0000 (00:33 -0000)
svn path=/trunk/; revision=49539

ui/gtk/main_menubar.c

index 23ccca34608430bdda546bd54003f5f601ca3d20..7f1b027b99e935400254dfa1283eae899b2f60d7 100644 (file)
@@ -3721,6 +3721,7 @@ void register_lua_menu_bar_menu_items(
  * http://developer.gnome.org/gtk/2.24/GtkUIManager.html#XML-UI
  * http://developer.gnome.org/gtk/2.24/GtkUIManager.html#gtk-ui-manager-add-ui-from-string
  */
+#ifdef HAVE_LUA
 static const gchar*
 make_menu_xml(const char *path)
 {
@@ -3812,6 +3813,7 @@ make_menu_xml(const char *path)
 
     return markup;
 }
+#endif
 
 /**
  * Creates an action group for the menu items in xpath, and returns it. The caller should