[PATCH 2/2] Janitor: compile warning fixes.

Paulo Cesar Pereira de Andrade pcpa at mandriva.com.br
Thu Feb 5 11:56:20 PST 2009


  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 <pcpa at 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

------=_20090205182705_59471--



More information about the xorg mailing list