blob: 32ca073f9584fd867f17d0cebbdc20057fc00c37 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001From 3776fd0b42e473fe51d3678bf26cdaa37e1d8e0d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 8 Apr 2017 13:36:12 -0700
4Subject: [PATCH] Add format attribute to _synctex_malloc
5
6Helps in avoiding compile errors about formating with clang
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10 cut-n-paste/synctex/synctex_parser_utils.c | 1 +
11 1 file changed, 1 insertion(+)
12
13diff --git a/cut-n-paste/synctex/synctex_parser_utils.c b/cut-n-paste/synctex/synctex_parser_utils.c
Brad Bishop23eaf032019-11-20 05:15:02 -050014index 08053f0..0519b38 100644
Brad Bishop6e60e8b2018-02-01 10:27:11 -050015--- a/cut-n-paste/synctex/synctex_parser_utils.c
16+++ b/cut-n-paste/synctex/synctex_parser_utils.c
Brad Bishop23eaf032019-11-20 05:15:02 -050017@@ -136,6 +136,7 @@ int _synctex_log(int level, const char * prompt, const char * reason,va_list arg
18 return result;
Brad Bishop6e60e8b2018-02-01 10:27:11 -050019 }
20
21+__attribute__((__format__ (__printf__, 1, 0)))
22 int _synctex_error(const char * reason,...) {
Brad Bishop23eaf032019-11-20 05:15:02 -050023 va_list arg;
24 int result;
Brad Bishop6e60e8b2018-02-01 10:27:11 -050025--
Brad Bishop23eaf032019-11-20 05:15:02 -0500262.20.1
Brad Bishop6e60e8b2018-02-01 10:27:11 -050027