mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
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)
This commit is contained in:
@ -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
|
||||
;
|
||||
|
||||
|
Reference in New Issue
Block a user