XGIErrorLog: add printf attribute

xgi_driver.c: In function ‘XGIErrorLog’:
xgi_driver.c:729:5: warning: function ‘XGIErrorLog’ 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>
This commit is contained in:
Alan Coopersmith
2022-12-09 13:02:00 -08:00
parent f6ffb479c3
commit 360c88c0d4

View File

@@ -716,7 +716,7 @@ XGIIdentify(int flags)
PDEBUG(ErrorF(" --- XGIIdentify \n"));
}
static void
static void _X_ATTRIBUTE_PRINTF(2,3)
XGIErrorLog(ScrnInfoPtr pScrn, const char *format, ...)
{
va_list ap;