compositor: format check for weston_log arguments
Add gcc format check attribute to the weston_log() and weston_log_continue() functions. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
committed by
Kristian Høgsberg
parent
df1fd36a14
commit
d525b564ae
+4
-2
@@ -706,9 +706,11 @@ weston_log_file_open(const char *filename);
|
|||||||
void
|
void
|
||||||
weston_log_file_close(void);
|
weston_log_file_close(void);
|
||||||
int
|
int
|
||||||
weston_log(const char *fmt, ...);
|
weston_log(const char *fmt, ...)
|
||||||
|
__attribute__ ((format (printf, 1, 2)));
|
||||||
int
|
int
|
||||||
weston_log_continue(const char *fmt, ...);
|
weston_log_continue(const char *fmt, ...)
|
||||||
|
__attribute__ ((format (printf, 1, 2)));
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
TTY_ENTER_VT,
|
TTY_ENTER_VT,
|
||||||
|
|||||||
Reference in New Issue
Block a user