summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-08 18:30:12 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-08 18:30:12 -0800
commit6b5e2078639725c09f9be7ca98512147dfa222a4 (patch)
treec6fa7ff4d75717f1f3e1ab86dfe9c0f913c638f3
parent7aca631c943c9c6108cc12099a4b747b109e2c0f (diff)
SISErrorLog: Add printf attribute
sis_driver.c: In function ‘SISErrorLog’: sis_driver.c:435:5: warning: function ‘SISErrorLog’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] xf86VDrvMsgVerb(pScrn->scrnIndex, X_ERROR, 1, format, ap); ^~~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/sis_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sis_driver.c b/src/sis_driver.c
index 6decae8..570c004 100644
--- a/src/sis_driver.c
+++ b/src/sis_driver.c
@@ -422,7 +422,7 @@ SISFreeRec(ScrnInfoPtr pScrn)
pScrn->driverPrivate = NULL;
}
-static void
+static void _X_ATTRIBUTE_PRINTF(2, 3)
SISErrorLog(ScrnInfoPtr pScrn, const char *format, ...)
{
va_list ap;