[Spice-devel] [PATCH] qxl_driver.c: fix compiler warning 'defined but not used' qxl_kernel_mode_enabled

Christophe Fergeau cfergeau at redhat.com
Tue Jun 24 01:37:51 PDT 2014


On Mon, Jun 09, 2014 at 04:08:37PM +0300, Alon Levy wrote:
> Signed-off-by: Alon Levy <alevy at redhat.com>
> ---
>  src/qxl_driver.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/qxl_driver.c b/src/qxl_driver.c
> index b9aa0e9..d9bf447 100644
> --- a/src/qxl_driver.c
> +++ b/src/qxl_driver.c
> @@ -1242,7 +1242,7 @@ qxl_init_scrn (ScrnInfoPtr pScrn, Bool kms)
>      pScrn->ValidMode        = NULL;
>  }
>  
> -#ifdef XF86DRM_MODE
> +#if defined(XF86DRM_MODE) && !defined(XSPICE)
>  static char *
>  CreatePCIBusID(const struct pci_device *dev)
>  {
> -- 
> 1.9.3

ACK, though we could also ensure that XF86DRM_MODE is never defined when
XSPICE is ? 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20140624/fb38592a/attachment.sig>


More information about the Spice-devel mailing list