From a00f91b4c15fcc5b8f9b9c70dde39fd97a8b2e89 Mon Sep 17 00:00:00 2001 From: Spencer Low Date: Tue, 4 Sep 2018 18:07:59 -0700 Subject: [PATCH] adb: syntax_error: add compile time format string checking Test: mma Change-Id: I8eccd17a1feac0dd98fb317d30ab27489b803669 Signed-off-by: Spencer Low --- adb/adb_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adb/adb_utils.h b/adb/adb_utils.h index f764a0eea..f6ce8e242 100644 --- a/adb/adb_utils.h +++ b/adb/adb_utils.h @@ -24,7 +24,7 @@ #include -int syntax_error(const char*, ...); +int syntax_error(const char*, ...) __attribute__((__format__(__printf__, 1, 2))); void close_stdin();