Mercurial > vim
diff src/proto.h @ 19760:9daed26b788b v8.2.0436
patch 8.2.0436: no warnings for incorrect printf arguments
Commit: https://github.com/vim/vim/commit/db99f9f29a248b84742b6779c3343123f72065e7
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Mar 23 22:12:22 2020 +0100
patch 8.2.0436: no warnings for incorrect printf arguments
Problem: No warnings for incorrect printf arguments.
Solution: Fix attribute in declaration. Fix uncovered mistakes. (Dominique
Pelle, closes #5834)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 23 Mar 2020 22:15:05 +0100 |
parents | 22f0dda71638 |
children | 00a1b89256ea |
line wrap: on
line diff
--- 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 ;