util: Add more PRINTFLIKE and MALLOCLIKE annotations

Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25230>
This commit is contained in:
Caio Oliveira
2023-09-14 08:22:57 -07:00
parent 931253b45d
commit ae99a3d76c
4 changed files with 14 additions and 13 deletions

View File

@@ -95,7 +95,7 @@ _mesa_string_buffer_vprintf(struct _mesa_string_buffer *str,
bool
_mesa_string_buffer_printf(struct _mesa_string_buffer *str,
const char *format, ...);
const char *format, ...) PRINTFLIKE(2, 3);
#ifdef __cplusplus
} /* extern "C" */