From 300f71eb205a43609ddfceefce08559e09e9f7f3 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Thu, 23 Jun 2016 13:40:15 +0200 Subject: synctex: fix compile warnings taken from: https://git.gnome.org/browse/evince/commit/?id=8262397 --- cut-n-paste/synctex/synctex_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cut-n-paste') diff --git a/cut-n-paste/synctex/synctex_parser.c b/cut-n-paste/synctex/synctex_parser.c index 9adc1fd1..638eb3d2 100644 --- a/cut-n-paste/synctex/synctex_parser.c +++ b/cut-n-paste/synctex/synctex_parser.c @@ -4351,8 +4351,8 @@ synctex_updater_t synctex_updater_new_with_output_file(const char * output, cons _synctex_error("! synctex_updater_new_with_file: malloc problem"); return NULL; } - if (_synctex_open(output,build_directory,&synctex,&SYNCTEX_FILE,synctex_ADD_QUOTES,&io_mode) - && _synctex_open(output,build_directory,&synctex,&SYNCTEX_FILE,synctex_DONT_ADD_QUOTES,&io_mode)) { + if (_synctex_open(output,build_directory,&synctex,(gzFile *)&SYNCTEX_FILE,synctex_ADD_QUOTES,&io_mode) + && _synctex_open(output,build_directory,&synctex,(gzFile *)&SYNCTEX_FILE,synctex_DONT_ADD_QUOTES,&io_mode)) { return_on_error: free(updater); updater = NULL; -- cgit v1.2.1