Dear zathura community,
in the last days I have updated the zathura package (and relative
plugins) in pkgsrc-wip[0] and I have noted that zathura 0.3.4 could not
be built without the synctex support because the synctex_editor variable
is passed incoditionally to init_zathura() function:

 zathura/main.c: In function 'init_zathura':
 zathura/main.c:89:11: warning: unused parameter 'synctex_editor' 
      char* synctex_editor, Window embed)
 zathura/main.c: In function 'main':
 zathura/main.c:254:26: error: 'synctex_editor' undeclared (first use in this 
        plugin_path, argv, synctex_editor, embed);

The attached patch in this email fixes that.

Thank you very much in advance for your attention!


synctex_editor parameter is passed to init_zathura() inconditionally if
WITH_SYNCTEX (or without). Declare it in both cases.

--- zathura/main.c.orig	2015-12-21 10:19:18.000000000 +0000
+++ zathura/main.c
@@ -135,8 +135,8 @@ main(int argc, char* argv[])
   gchar* plugin_path    = NULL;
   gchar* loglevel       = NULL;
   gchar* password       = NULL;
   gchar* synctex_editor = NULL;
   gchar* synctex_fwd    = NULL;
   gchar* mode           = NULL;
zathura mailing list

Reply via email to