From 51072289a3b0437f4a49eb9759eac695827737f7 Mon Sep 17 00:00:00 2001 From: sauwming Date: Tue, 21 Mar 2023 11:48:47 +0800 Subject: [PATCH] Apply printf decor to pj_perror() --- pjlib/include/pj/errno.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pjlib/include/pj/errno.h b/pjlib/include/pj/errno.h index 00cb4505b..c2095482d 100644 --- a/pjlib/include/pj/errno.h +++ b/pjlib/include/pj/errno.h @@ -199,7 +199,8 @@ PJ_DECL(pj_str_t) pj_strerror( pj_status_t statcode, * @see PJ_PERROR() */ PJ_DECL(void) pj_perror(int log_level, const char *sender, pj_status_t status, - const char *title_fmt, ...); + const char *title_fmt, ...) + PJ_PRINT_FUNC_DECOR(4); /**