diff --git a/core/synctex/patches/04-gcc-specify-printf-format.diff b/core/synctex/patches/04-gcc-specify-printf-format.diff index bdd53649c..24cc67e17 100644 --- a/core/synctex/patches/04-gcc-specify-printf-format.diff +++ b/core/synctex/patches/04-gcc-specify-printf-format.diff @@ -54,7 +54,7 @@ Index: synctex/synctex_parser_utils.c =================================================================== --- synctex.orig/synctex_parser_utils.c +++ synctex/synctex_parser_utils.c -@@ -87,7 +87,9 @@ void _synctex_free(void * ptr) { +@@ -87,8 +87,11 @@ void _synctex_free(void * ptr) { # include #endif @@ -63,5 +63,15 @@ Index: synctex/synctex_parser_utils.c +int _synctex_log(int level, const char * prompt, const char * reason, ...) { + va_list arg; int result; ++ va_start(arg, reason); # ifdef SYNCTEX_RECENT_WINDOWS {/* This code is contributed by William Blum. + As it does not work on some older computers, +@@ -130,6 +133,7 @@ int _synctex_log(int level, const char * + result += vfprintf(where, reason, arg); + result += fprintf(where,"\n"); + # endif ++ va_end(arg); + return result; + } + diff --git a/core/synctex/patches/06-mingw-_synctex_error.diff b/core/synctex/patches/06-mingw-_synctex_error.diff index cf89dec42..75f0aafc6 100644 --- a/core/synctex/patches/06-mingw-_synctex_error.diff +++ b/core/synctex/patches/06-mingw-_synctex_error.diff @@ -7,7 +7,7 @@ Index: synctex/synctex_parser_utils.c =================================================================== --- synctex.orig/synctex_parser_utils.c +++ synctex/synctex_parser_utils.c -@@ -103,8 +103,26 @@ int _synctex_log(int level, const char * +@@ -104,8 +104,26 @@ int _synctex_log(int level, const char * char *buff; size_t len; OutputDebugStringA(prompt); diff --git a/core/synctex/patches/08-fix_cpp_comments.diff b/core/synctex/patches/08-fix_cpp_comments.diff index d8611a5dd..05dd81c59 100644 --- a/core/synctex/patches/08-fix_cpp_comments.diff +++ b/core/synctex/patches/08-fix_cpp_comments.diff @@ -27,7 +27,7 @@ Index: synctex/synctex_parser_utils.c =================================================================== --- synctex.orig/synctex_parser_utils.c +++ synctex/synctex_parser_utils.c -@@ -585,6 +585,6 @@ int _synctex_get_name(const char * outpu +@@ -587,6 +587,6 @@ int _synctex_get_name(const char * outpu const char * _synctex_get_io_mode_name(synctex_io_mode_t io_mode) { static const char * synctex_io_modes[4] = {"r","rb","a","ab"}; diff --git a/core/synctex/patches/10-fix-typo.diff b/core/synctex/patches/10-fix-typo.diff index dd1e7ddd1..93387b4b9 100644 --- a/core/synctex/patches/10-fix-typo.diff +++ b/core/synctex/patches/10-fix-typo.diff @@ -6,7 +6,7 @@ Index: synctex/synctex_parser_utils.c =================================================================== --- synctex.orig/synctex_parser_utils.c +++ synctex/synctex_parser_utils.c -@@ -408,7 +408,7 @@ char * _synctex_merge_strings(const char +@@ -410,7 +410,7 @@ char * _synctex_merge_strings(const char /* The purpose of _synctex_get_name is to find the name of the synctex file. * There is a list of possible filenames from which we return the most recent one and try to remove all the others. diff --git a/core/synctex/patches/13-fix-Wundef-warnings.diff b/core/synctex/patches/13-fix-Wundef-warnings.diff index 0d6357fde..e5c1924fd 100644 --- a/core/synctex/patches/13-fix-Wundef-warnings.diff +++ b/core/synctex/patches/13-fix-Wundef-warnings.diff @@ -315,7 +315,7 @@ Index: synctex/synctex_parser_utils.c =================================================================== --- synctex.orig/synctex_parser_utils.c +++ synctex/synctex_parser_utils.c -@@ -128,7 +128,7 @@ int _synctex_log(int level, const char * +@@ -129,7 +129,7 @@ int _synctex_log(int level, const char * OutputDebugStringA("\n"); free(buff); } diff --git a/core/synctex/synctex_parser_utils.c b/core/synctex/synctex_parser_utils.c index 46f35bc8b..fdbf5813b 100644 --- a/core/synctex/synctex_parser_utils.c +++ b/core/synctex/synctex_parser_utils.c @@ -91,6 +91,7 @@ int _synctex_log(int level, const char * prompt, const char * reason, ...) SYNCT int _synctex_log(int level, const char * prompt, const char * reason, ...) { va_list arg; int result; + va_start(arg, reason); # ifdef SYNCTEX_RECENT_WINDOWS {/* This code is contributed by William Blum. As it does not work on some older computers, @@ -150,6 +151,7 @@ int _synctex_log(int level, const char * prompt, const char * reason, ...) { result += vfprintf(where, reason, arg); result += fprintf(where,"\n"); # endif + va_end(arg); return result; }