[video] Mark dga funcs as const when dga not available

Fixes a compile issue (warning about attribute const) when dga is not
available, thanks to spiritiit for finding it :)
This commit is contained in:
Bill Currie 2021-08-11 12:09:07 +09:00
parent 2828500f04
commit c81f2d4b52
2 changed files with 10 additions and 3 deletions

View file

@ -38,7 +38,11 @@
Check for the presence of the XFree86-DGA support in the X server
*/
qboolean VID_CheckDGA (Display *, int *, int *, int *);
qboolean VID_CheckDGA (Display *, int *, int *, int *)
#ifndef HAVE_DGA // FIXME
__attribute__((const))
#endif
;
/*
@ -46,6 +50,10 @@ qboolean VID_CheckDGA (Display *, int *, int *, int *);
Check for the presence of the XFree86-VMode X server extension
*/
qboolean VID_CheckVMode (Display *, int *, int *);
qboolean VID_CheckVMode (Display *, int *, int *)
#ifndef HAVE_DGA // FIXME
__attribute__((const))
#endif
;
#endif // __dga_check_h_

View file

@ -64,7 +64,6 @@
#include "compat.h"
#include "context_x11.h"
#include "d_iface.h"
#include "dga_check.h"
#include "vid_internal.h"
static vid_internal_t vid_internal;