From d6744932a2b5fbba67870e9eb5a3bc155f2a57bf Mon Sep 17 00:00:00 2001 From: Eric van Gyzen Date: Sat, 1 Oct 2016 23:08:26 +0000 Subject: Add the __printflike attribute to the declaration of vdprintf(3) I intended to add this in r306568. MFC after: 3 days Sponsored by: Dell EMC --- include/stdio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/stdio.h') diff --git a/include/stdio.h b/include/stdio.h index 862bc8e8c25a..5950625ec2f6 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -356,7 +356,7 @@ ssize_t getdelim(char ** __restrict, size_t * __restrict, int, FILE * __restrict); FILE *open_memstream(char **, size_t *); int renameat(int, const char *, int, const char *); -int vdprintf(int, const char * __restrict, __va_list); +int vdprintf(int, const char * __restrict, __va_list) __printflike(2, 0); /* _WITH_GETLINE to allow pre 11 sources to build on 11+ systems */ ssize_t getline(char ** __restrict, size_t * __restrict, FILE * __restrict); int dprintf(int, const char * __restrict, ...) __printflike(2, 3); -- cgit v1.3