mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Mark all vlog functions with printf attributes
This ensures that compiler warnings about format strings will apply to all calls of these functions as well.
This commit is contained in:
@@ -6,6 +6,8 @@ extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#include <SDL_stdinc.h>
|
||||
|
||||
void vlog_init(void);
|
||||
|
||||
void vlog_toggle_output(int enable_output);
|
||||
@@ -20,13 +22,13 @@ void vlog_toggle_warn(int enable_warn);
|
||||
|
||||
void vlog_toggle_error(int enable_error);
|
||||
|
||||
int vlog_debug(const char* text, ...);
|
||||
SDL_PRINTF_VARARG_FUNC(1) int vlog_debug(const char* text, ...);
|
||||
|
||||
int vlog_info(const char* text, ...);
|
||||
SDL_PRINTF_VARARG_FUNC(1) int vlog_info(const char* text, ...);
|
||||
|
||||
int vlog_warn(const char* text, ...);
|
||||
SDL_PRINTF_VARARG_FUNC(1) int vlog_warn(const char* text, ...);
|
||||
|
||||
int vlog_error(const char* text, ...);
|
||||
SDL_PRINTF_VARARG_FUNC(1) int vlog_error(const char* text, ...);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
|
||||
Reference in New Issue
Block a user