xfree86: Hide unused variables when !XSERVER_LIBPCIACCESS
../hw/xfree86/common/xf86Config.c: In function ‘xf86HandleConfigFile’: ../hw/xfree86/common/xf86Config.c:2278:10: warning: unused variable ‘singlecard’ [-Wunused-variable] ../hw/xfree86/common/xf86Config.c:2277:17: warning: unused variable ‘scanptr’ [-Wunused-variable] Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk> Reviewed-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
This commit is contained in:
parent
7a19a3e093
commit
7a90c9b24e
|
@ -2274,8 +2274,10 @@ checkInput(serverLayoutPtr layout, Bool implicit_layout)
|
|||
ConfigStatus
|
||||
xf86HandleConfigFile(Bool autoconfig)
|
||||
{
|
||||
#ifdef XSERVER_LIBPCIACCESS
|
||||
const char *scanptr;
|
||||
Bool singlecard = 0;
|
||||
#endif
|
||||
Bool implicit_layout = FALSE;
|
||||
XF86ConfLayoutPtr layout;
|
||||
|
||||
|
|
Loading…
Reference in New Issue