[PATCH:xdm 3/5] Add _X_ATTRIBUTE_PRINTF to LogVWrite declaration

Alan Coopersmith alan.coopersmith at oracle.com
Thu Jun 2 22:10:10 PDT 2011


Suggested by gcc -Wmissing-format-attribute

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 xdm/error.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/xdm/error.c b/xdm/error.c
index 198053f..af32ad5 100644
--- a/xdm/error.c
+++ b/xdm/error.c
@@ -43,7 +43,7 @@ from The Open Group.
 #include "dm_error.h"
 
 /* This function does the actual log message writes. */
-static inline void
+static inline void _X_ATTRIBUTE_PRINTF(1,0)
 LogVWrite(const char *fmt, va_list args)
 {
     char buf[1024];
-- 
1.7.3.2



More information about the xorg-devel mailing list