Skip to content

Commit

Permalink
xfree86: Hide unused variables when !XSERVER_LIBPCIACCESS
Browse files Browse the repository at this point in the history
../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>
  • Loading branch information
jon-turney authored and nwnk committed May 15, 2017
1 parent 7a19a3e commit 7a90c9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hw/xfree86/common/xf86Config.c
Expand Up @@ -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;

Expand Down

0 comments on commit 7a90c9b

Please sign in to comment.