mirror of
https://github.com/X11Libre/xf86-video-xgi.git
synced 2026-03-24 01:24:35 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user