[winpr] add WINPR_ATTR_FORMAT_ARG

this macro declares the function argument (pos,arg) to be a printf
style format string and enables compiler checks for that.
This commit is contained in:
akallabeth
2023-08-25 12:14:09 +02:00
committed by akallabeth
parent 786279fd9f
commit 4e824b243f
9 changed files with 18 additions and 0 deletions

View File

@@ -1257,6 +1257,7 @@ static const struct
const char skey[6];
} options = { "--pcap=", "--fast", "--port=", "--local-only", "--cert=", "--key=" };
WINPR_ATTR_FORMAT_ARG(2, 0)
static void print_entry(FILE* fp, const char* fmt, const char* what, size_t size)
{
char buffer[32] = { 0 };