>From fb59b563f6a586ee491f437281c7251f8a83d8f5 Mon Sep 17 00:00:00 2001
From: Paulo Cesar Pereira de Andrade <p...@mandriva.com.br>
Date: Thu, 5 Feb 2009 17:56:20 -0200
Subject: [PATCH 2/2] Janitor: compile warning fixes.

  Correct most warnings generated by gcc and sparse.

  Remaining warnings are about the APM and apmModuleData symbols
that have no declaration. Those symbols are dlsym'ed by the server
loader, to find module entry points.

Signed-off-by: Paulo Cesar Pereira de Andrade <p...@mandriva.com.br>
---
 src/apm_dga.c    |    2 +-
 src/apm_driver.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/apm_dga.c b/src/apm_dga.c
index 313d03b..a947d70 100644
--- a/src/apm_dga.c
+++ b/src/apm_dga.c
@@ -45,7 +45,7 @@ DGAFunctionRec ApmDGAFuncs = {
 /*
  * Placeholder
  */
-void
+static void
 ApmSync(ScrnInfoPtr pScrn)
 {
 }
diff --git a/src/apm_driver.c b/src/apm_driver.c
index 0166f41..d53a712 100644
--- a/src/apm_driver.c
+++ b/src/apm_driver.c
@@ -2061,7 +2061,7 @@ ApmScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
 
     /* must be after visual RGB order fixed */
     if (pScrn->bitsPerPixel > 4)
-	fbPictureInit(pScreen, 0, 0);
+	fbPictureInit(pScreen, NULL, 0);
     
     xf86SetBlackWhitePixels(pScreen);
 
-- 
1.6.1
_______________________________________________
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg

Reply via email to