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' 
[-Wunused-parameter]
      char* synctex_editor, Window embed)
            ^
 zathura/main.c: In function 'main':
 zathura/main.c:254:26: error: 'synctex_editor' undeclared (first use in this 
function)
        plugin_path, argv, synctex_editor, embed);
                           ^
 [...]

The attached patch in this email fixes that.


Thank you very much in advance for your attention!
Ciao,
L.

[0]: https://wip.pkgsrc.org/
$NetBSD$

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;
-#ifdef WITH_SYNCTEX
   gchar* synctex_editor = NULL;
+#ifdef WITH_SYNCTEX
   gchar* synctex_fwd    = NULL;
 #endif
   gchar* mode           = NULL;
_______________________________________________
zathura mailing list
zathura@lists.pwmt.org
https://lists.pwmt.org/mailman/listinfo/zathura

Reply via email to