[evince] synctex: Annotate more functions that wraps formatting strings
- From: Germán Poo-Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] synctex: Annotate more functions that wraps formatting strings
- Date: Sat, 30 May 2020 22:46:42 +0000 (UTC)
commit 43a45e7280add1a9fe09b596a7873936630e1ade
Author: Germán Poo-Caamaño <gpoo gnome org>
Date: Sat May 30 18:45:26 2020 -0400
synctex: Annotate more functions that wraps formatting strings
Annotate missing functions after sync them with upstream
cut-n-paste/synctex/synctex_parser_utils.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/cut-n-paste/synctex/synctex_parser_utils.c b/cut-n-paste/synctex/synctex_parser_utils.c
index 14989281..bda37816 100644
--- a/cut-n-paste/synctex/synctex_parser_utils.c
+++ b/cut-n-paste/synctex/synctex_parser_utils.c
@@ -86,6 +86,7 @@ void _synctex_free(void * ptr) {
# include <syslog.h>
#endif
+__attribute__((__format__ (__printf__, 3, 0)))
static int _synctex_log(int level, const char * prompt, const char * reason,va_list arg) {
int result;
# ifdef SYNCTEX_RECENT_WINDOWS
@@ -132,6 +133,7 @@ static int _synctex_log(int level, const char * prompt, const char * reason,va_l
return result;
}
+__attribute__((__format__ (__printf__, 1, 2)))
int _synctex_error(const char * reason,...) {
va_list arg;
int result;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]