From e893d570aa3e9ae8df6a30ac4adaf0949a2fc733 Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Thu, 11 Oct 2012 19:36:13 +0100 Subject: Use X_ATTRIBUTE_PRINTF where suggested for os.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit InitOutput.c: In function ‘OsVendorInit’: InitOutput.c:630:29: warning: assignment left-hand side might be a candidate for a format attribute [-Wmissing-format-attribute] winprocarg.c: In function ‘ddxProcessArgument’: winprocarg.c:231:29: warning: assignment left-hand side might be a candidate for a format attribute [-Wmissing-format-attribute] Signed-off-by: Jon TURNEY Reviewed-by: Colin Harrison --- include/os.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/os.h') diff --git a/include/os.h b/include/os.h index e32421610..c7108a5d3 100644 --- a/include/os.h +++ b/include/os.h @@ -88,7 +88,9 @@ extern void ddxBeforeReset(void); #endif #ifdef DDXOSVERRORF -extern _X_EXPORT void (*OsVendorVErrorFProc) (const char *, va_list args); +extern _X_EXPORT void (*OsVendorVErrorFProc) (const char *, + va_list args) +_X_ATTRIBUTE_PRINTF(1, 0); #endif extern _X_EXPORT int WaitForSomething(int * /*pClientsReady */ -- cgit v1.2.3