summaryrefslogtreecommitdiff
path: root/src/proto.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-03-23 22:12:22 +0100
committerBram Moolenaar <Bram@vim.org>2020-03-23 22:12:22 +0100
commitdb99f9f29a248b84742b6779c3343123f72065e7 (patch)
treee0f89d9f7c7b5c44e3d5abbde004ae814b11688e /src/proto.h
parentdbbb0ef729e392e313ccc63c247bff1b828a214d (diff)
downloadvim-git-db99f9f29a248b84742b6779c3343123f72065e7.tar.gz
patch 8.2.0436: no warnings for incorrect printf argumentsv8.2.0436
Problem: No warnings for incorrect printf arguments. Solution: Fix attribute in declaration. Fix uncovered mistakes. (Dominique Pelle, closes #5834)
Diffstat (limited to 'src/proto.h')
-rw-r--r--src/proto.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/proto.h b/src/proto.h
index a8faa83ca..74f38cd03 100644
--- a/src/proto.h
+++ b/src/proto.h
@@ -119,7 +119,7 @@ extern int _stricoll(char *a, char *b);
// These prototypes cannot be produced automatically.
int smsg(const char *, ...)
# ifdef USE_PRINTF_FORMAT_ATTRIBUTE
- __attribute__((format(printf, 1, 0)))
+ __attribute__((format(printf, 1, 2)))
# endif
;
@@ -138,14 +138,14 @@ int smsg_attr_keep(int, const char *, ...)
// These prototypes cannot be produced automatically.
int semsg(const char *, ...)
# ifdef USE_PRINTF_FORMAT_ATTRIBUTE
- __attribute__((format(printf, 1, 0)))
+ __attribute__((format(printf, 1, 2)))
# endif
;
// These prototypes cannot be produced automatically.
void siemsg(const char *, ...)
# ifdef USE_PRINTF_FORMAT_ATTRIBUTE
- __attribute__((format(printf, 1, 0)))
+ __attribute__((format(printf, 1, 2)))
# endif
;