Warning, /graphics/okular/core/synctex/patches/18-Include-stdarg.h-for-va_start-and-va_end.diff is written in an unsupported language. File is not indexed.
0001 From 879adf6f6e3afc421028de4c3fbc912d0ef36542 Mon Sep 17 00:00:00 2001 0002 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= <dev@ingo-kloecker.de> 0003 Date: Mon, 3 Jul 2023 17:36:51 +0200 0004 Subject: [PATCH] Include stdarg.h for va_start and va_end 0005 0006 Fixes "implicit declaration of function" error with devtoolset-10 0007 (gcc (GCC) 10.2.1 20210130 (Red Hat 10.2.1-11)) in centos7 Docker image 0008 used for building an AppImage. 0009 0010 See also `man 3 va_start`. 0011 --- 0012 core/synctex/synctex_parser.c | 2 +- 0013 1 file changed, 1 insertion(+), 1 deletion(-) 0014 0015 diff --git a/core/synctex/synctex_parser.c b/core/synctex/synctex_parser.c 0016 index cc97ecc52..9eed566b3 100644 0017 --- a/core/synctex/synctex_parser.c 0018 +++ b/core/synctex/synctex_parser.c 0019 @@ -69,6 +69,7 @@ 0020 0021 #include <errno.h> 0022 #include <limits.h> 0023 +#include <stdarg.h> 0024 #include <stdio.h> 0025 #include <stdlib.h> 0026 #include <string.h> 0027 @@ -8025,7 +8026,6 @@ static int _synctex_updater_print(synctex_updater_p updater, const char *format, 0028 return result; 0029 } 0030 #if defined(_MSC_VER) || defined(__MINGW32__) 0031 -#include <stdarg.h> 0032 #include <stdio.h> 0033 #include <stdlib.h> 0034 0035 -- 0036 2.41.0 0037