[xserver-commit] xserver ChangeLog,3.26.2.12,3.26.2.13 configure.ac,3.27.2.3,3.27.2.4

Keith Packard xserver-commit@pdx.freedesktop.org
Wed, 29 Oct 2003 08:27:28 -0800


Committed by: keithp

Update of /cvs/xserver/xserver
In directory pdx:/tmp/cvs-serv23305

Modified Files:
      Tag: xfixes_2_branch
	ChangeLog configure.ac 
Log Message:
	* Xext/bigreq.c: (BigReqExtensionInit):
	* Xext/mitmisc.c: (MITMiscExtensionInit):
	* Xext/saver.c: (ScreenSaverExtensionInit):
	* Xext/shm.c: (ShmExtensionInit), (ShmRegisterFuncs),
	(ShmSetPixmapFormat):
	* Xext/shmint.h:
	* Xext/sleepuntil.c: (ClientSleepUntil):
	* Xext/sleepuntil.h:
	* Xext/sync.c: (SyncCreateSystemCounter), (SyncExtensionInit):
	* Xext/syncint.h:
	* Xext/xcmisc.c: (XCMiscExtensionInit):
	* Xext/xext.h:
	* Xext/xres.c:
	* Xext/xtest.c: (XTestExtensionInit):
	* Xext/xtest1di.c: (XTestExtension1Init):
	* Xext/xvmc.c: (XvMCFindXvImage):
	* Xext/xvmcext.h:
	* configure.ac:
	* dix/dispatch.c:
	* dix/extension.c: (CloseDownExtensions):
	* dix/property.c: (NullPropertyReply):
	* dix/xpstubs.c: (XpClientIsBitmapClient), (XpClientIsPrintClient),
	(XprintOptions):
	* hw/kdrive/fbdev/fbdev.c: (fbdevUnmapFramebuffer),
	(fbdevRandRSetConfig):
	* hw/kdrive/fbdev/fbdev.h:
	* hw/kdrive/linux/agp.c: (GARTInit):
	* hw/kdrive/linux/bus.c:
	* hw/kdrive/linux/keyboard.c: (readKernelMapping):
	* hw/kdrive/linux/linux.c: (LinuxInit):
	* hw/kdrive/linux/mouse.c:
	* hw/kdrive/linux/ms.c:
	* hw/kdrive/linux/ps2.c:
	* hw/kdrive/mach64/mach64.c:
	* hw/kdrive/mach64/mach64draw.c:
	* hw/kdrive/mga/mga.c:
	* hw/kdrive/mga/mgadraw.c: (mgaPrepareSolid), (mgaPrepareCopy):
	* hw/kdrive/nvidia/nvidia.c: (nvidiaLockUnlock):
	* hw/kdrive/nvidia/nvidia.h:
	* hw/kdrive/nvidia/nvidiadraw.c: (nvidiaPrepareSolid),
	(nvidiaPrepareCopy), (nvidiaDrawInit), (nvidiaDrawEnable):
	* hw/kdrive/r128/r128.c: (r128ScreenInit), (r128Preserve),
	(r128DPMS):
	* hw/kdrive/r128/r128draw.c: (r128WaitAvail), (r128Setup),
	(r128DrawInit):
	* hw/kdrive/r128/r128stub.c:
	* hw/kdrive/smi/smi.c: (smiRandRSetConfig), (smiPreserve),
	(smiDPMS), (smiRestore):
	* hw/kdrive/smi/smi.h:
	* hw/kdrive/smi/smidraw.c: (smiPrepareSolid), (smiPrepareCopy),
	(smiDrawInit):
	* hw/kdrive/smi/smistub.c:
	* hw/kdrive/src/kaa.c:
	* hw/kdrive/src/kcmap.c:
	* hw/kdrive/src/kcurscol.c:
	* hw/kdrive/src/kdrive.c: (KdCreateScreenResources):
	* hw/kdrive/src/kdrive.h:
	* hw/kdrive/src/kinput.c:
	* hw/kdrive/src/knoop.c:
	* hw/kdrive/src/vga.c:
	* hw/kdrive/src/vga.h:
	* hw/kdrive/vesa/vesa.h:
	* hw/xnest/Color.c: (xnestCreateColormap), (xnestDestroyColormap),
	(xnestCountInstalledColormapWindows),
	(xnestGetInstalledColormapWindows),
	(xnestSameInstalledColormapWindows),
	(xnestSetInstalledColormapWindows),
	(xnestSetScreenSaverColormapWindow), (xnestDirectInstallColormaps),
	(xnestDirectUninstallColormaps), (xnestInstallColormap),
	(xnestUninstallColormap), (xnestListInstalledColormaps),
	(xnestStoreColors), (xnestResolveColor),
	(xnestCreateDefaultColormap):
	* hw/xnest/Color.h:
	* hw/xnest/Cursor.c: (xnestConstrainCursor), (xnestCursorLimits),
	(xnestDisplayCursor), (xnestRealizeCursor), (xnestUnrealizeCursor),
	(xnestRecolorCursor), (xnestSetCursorPosition):
	* hw/xnest/Display.c: (xnestOpenDisplay):
	* hw/xnest/Display.h:
	* hw/xnest/Events.c: (xnestExposurePredicate),
	(xnestNotExposurePredicate), (xnestCollectExposures),
	(xnestCollectEvents):
	* hw/xnest/Events.h:
	* hw/xnest/Font.c: (xnestRealizeFont), (xnestUnrealizeFont):
	* hw/xnest/GC.c: (xnestValidateGC), (xnestChangeGC), (xnestCopyGC),
	(xnestDestroyGC), (xnestDestroyClipHelper), (xnestChangeClip),
	(xnestDestroyClip), (xnestCopyClip), (xnestCreateGC):
	* hw/xnest/GCOps.c: (xnestFillSpans), (xnestSetSpans),
	(xnestGetSpans), (xnestQueryBestSize), (xnestPutImage),
	(xnestGetImage), (xnestBitBlitPredicate), (xnestBitBlitHelper),
	(xnestCopyArea), (xnestCopyPlane), (xnestPolyPoint),
	(xnestPolylines), (xnestPolySegment), (xnestPolyRectangle),
	(xnestPolyArc), (xnestFillPolygon), (xnestPolyFillRect),
	(xnestPolyFillArc), (xnestPolyText8), (xnestPolyText16),
	(xnestImageText8), (xnestImageText16), (xnestImageGlyphBlt),
	(xnestPolyGlyphBlt), (xnestPushPixels):
	* hw/xnest/GCOps.h:
	* hw/xnest/Keyboard.h:
	* hw/xnest/Screen.c: (xnestScreen):
	* hw/xnest/Screen.h:
	* hw/xnest/Visual.c: (xnestVisual), (xnestVisualFromID):
	* hw/xnest/Visual.h:
	* hw/xnest/Window.c: (xnestWindowPtr):
	* hw/xnest/XNCursor.h:
	* hw/xnest/XNFont.h:
	* hw/xnest/XNGC.h:
	* hw/xnest/XNPixmap.h:
	* hw/xnest/XNWindow.h:
	* include/extnsionst.h:
	* mi/Makefile.am:
	* mi/miinitext.c:
	* os/Makefile.am:
	* os/connection.c: (ClientAuthorized):
	* os/hpsocket.c: (set_socket_option), (unset_socket_option):
	* os/xdmauth.c: (XdmCheckCookie), (XdmToID):
	Prototype fixes (various)
	Add GCC warnings (including -Werror.  clean up your code)
	Other warning fixes (unused variables, etc)
	Get rid of unused extension interfaces (aux screen procs)
	Make lots of functions in kdrive static
	Eliminate unused code from os library


Index: ChangeLog
===================================================================
RCS file: /cvs/xserver/xserver/ChangeLog,v
retrieving revision 3.26.2.12
retrieving revision 3.26.2.13
diff -u -d -r3.26.2.12 -r3.26.2.13
--- ChangeLog	25 Oct 2003 15:13:20 -0000	3.26.2.12
+++ ChangeLog	29 Oct 2003 16:26:26 -0000	3.26.2.13
@@ -1,3 +1,126 @@
+2003-10-29  Keith Packard  <keithp@keithp.com>
+
+	* Xext/bigreq.c: (BigReqExtensionInit):
+	* Xext/mitmisc.c: (MITMiscExtensionInit):
+	* Xext/saver.c: (ScreenSaverExtensionInit):
+	* Xext/shm.c: (ShmExtensionInit), (ShmRegisterFuncs),
+	(ShmSetPixmapFormat):
+	* Xext/shmint.h:
+	* Xext/sleepuntil.c: (ClientSleepUntil):
+	* Xext/sleepuntil.h:
+	* Xext/sync.c: (SyncCreateSystemCounter), (SyncExtensionInit):
+	* Xext/syncint.h:
+	* Xext/xcmisc.c: (XCMiscExtensionInit):
+	* Xext/xext.h:
+	* Xext/xres.c:
+	* Xext/xtest.c: (XTestExtensionInit):
+	* Xext/xtest1di.c: (XTestExtension1Init):
+	* Xext/xvmc.c: (XvMCFindXvImage):
+	* Xext/xvmcext.h:
+	* configure.ac:
+	* dix/dispatch.c:
+	* dix/extension.c: (CloseDownExtensions):
+	* dix/property.c: (NullPropertyReply):
+	* dix/xpstubs.c: (XpClientIsBitmapClient), (XpClientIsPrintClient),
+	(XprintOptions):
+	* hw/kdrive/fbdev/fbdev.c: (fbdevUnmapFramebuffer),
+	(fbdevRandRSetConfig):
+	* hw/kdrive/fbdev/fbdev.h:
+	* hw/kdrive/linux/agp.c: (GARTInit):
+	* hw/kdrive/linux/bus.c:
+	* hw/kdrive/linux/keyboard.c: (readKernelMapping):
+	* hw/kdrive/linux/linux.c: (LinuxInit):
+	* hw/kdrive/linux/mouse.c:
+	* hw/kdrive/linux/ms.c:
+	* hw/kdrive/linux/ps2.c:
+	* hw/kdrive/mach64/mach64.c:
+	* hw/kdrive/mach64/mach64draw.c:
+	* hw/kdrive/mga/mga.c:
+	* hw/kdrive/mga/mgadraw.c: (mgaPrepareSolid), (mgaPrepareCopy):
+	* hw/kdrive/nvidia/nvidia.c: (nvidiaLockUnlock):
+	* hw/kdrive/nvidia/nvidia.h:
+	* hw/kdrive/nvidia/nvidiadraw.c: (nvidiaPrepareSolid),
+	(nvidiaPrepareCopy), (nvidiaDrawInit), (nvidiaDrawEnable):
+	* hw/kdrive/r128/r128.c: (r128ScreenInit), (r128Preserve),
+	(r128DPMS):
+	* hw/kdrive/r128/r128draw.c: (r128WaitAvail), (r128Setup),
+	(r128DrawInit):
+	* hw/kdrive/r128/r128stub.c:
+	* hw/kdrive/smi/smi.c: (smiRandRSetConfig), (smiPreserve),
+	(smiDPMS), (smiRestore):
+	* hw/kdrive/smi/smi.h:
+	* hw/kdrive/smi/smidraw.c: (smiPrepareSolid), (smiPrepareCopy),
+	(smiDrawInit):
+	* hw/kdrive/smi/smistub.c:
+	* hw/kdrive/src/kaa.c:
+	* hw/kdrive/src/kcmap.c:
+	* hw/kdrive/src/kcurscol.c:
+	* hw/kdrive/src/kdrive.c: (KdCreateScreenResources):
+	* hw/kdrive/src/kdrive.h:
+	* hw/kdrive/src/kinput.c:
+	* hw/kdrive/src/knoop.c:
+	* hw/kdrive/src/vga.c:
+	* hw/kdrive/src/vga.h:
+	* hw/kdrive/vesa/vesa.h:
+	* hw/xnest/Color.c: (xnestCreateColormap), (xnestDestroyColormap),
+	(xnestCountInstalledColormapWindows),
+	(xnestGetInstalledColormapWindows),
+	(xnestSameInstalledColormapWindows),
+	(xnestSetInstalledColormapWindows),
+	(xnestSetScreenSaverColormapWindow), (xnestDirectInstallColormaps),
+	(xnestDirectUninstallColormaps), (xnestInstallColormap),
+	(xnestUninstallColormap), (xnestListInstalledColormaps),
+	(xnestStoreColors), (xnestResolveColor),
+	(xnestCreateDefaultColormap):
+	* hw/xnest/Color.h:
+	* hw/xnest/Cursor.c: (xnestConstrainCursor), (xnestCursorLimits),
+	(xnestDisplayCursor), (xnestRealizeCursor), (xnestUnrealizeCursor),
+	(xnestRecolorCursor), (xnestSetCursorPosition):
+	* hw/xnest/Display.c: (xnestOpenDisplay):
+	* hw/xnest/Display.h:
+	* hw/xnest/Events.c: (xnestExposurePredicate),
+	(xnestNotExposurePredicate), (xnestCollectExposures),
+	(xnestCollectEvents):
+	* hw/xnest/Events.h:
+	* hw/xnest/Font.c: (xnestRealizeFont), (xnestUnrealizeFont):
+	* hw/xnest/GC.c: (xnestValidateGC), (xnestChangeGC), (xnestCopyGC),
+	(xnestDestroyGC), (xnestDestroyClipHelper), (xnestChangeClip),
+	(xnestDestroyClip), (xnestCopyClip), (xnestCreateGC):
+	* hw/xnest/GCOps.c: (xnestFillSpans), (xnestSetSpans),
+	(xnestGetSpans), (xnestQueryBestSize), (xnestPutImage),
+	(xnestGetImage), (xnestBitBlitPredicate), (xnestBitBlitHelper),
+	(xnestCopyArea), (xnestCopyPlane), (xnestPolyPoint),
+	(xnestPolylines), (xnestPolySegment), (xnestPolyRectangle),
+	(xnestPolyArc), (xnestFillPolygon), (xnestPolyFillRect),
+	(xnestPolyFillArc), (xnestPolyText8), (xnestPolyText16),
+	(xnestImageText8), (xnestImageText16), (xnestImageGlyphBlt),
+	(xnestPolyGlyphBlt), (xnestPushPixels):
+	* hw/xnest/GCOps.h:
+	* hw/xnest/Keyboard.h:
+	* hw/xnest/Screen.c: (xnestScreen):
+	* hw/xnest/Screen.h:
+	* hw/xnest/Visual.c: (xnestVisual), (xnestVisualFromID):
+	* hw/xnest/Visual.h:
+	* hw/xnest/Window.c: (xnestWindowPtr):
+	* hw/xnest/XNCursor.h:
+	* hw/xnest/XNFont.h:
+	* hw/xnest/XNGC.h:
+	* hw/xnest/XNPixmap.h:
+	* hw/xnest/XNWindow.h:
+	* include/extnsionst.h:
+	* mi/Makefile.am:
+	* mi/miinitext.c:
+	* os/Makefile.am:
+	* os/connection.c: (ClientAuthorized):
+	* os/hpsocket.c: (set_socket_option), (unset_socket_option):
+	* os/xdmauth.c: (XdmCheckCookie), (XdmToID):
+	Prototype fixes (various)
+	Add GCC warnings (including -Werror.  clean up your code)
+	Other warning fixes (unused variables, etc)
+	Get rid of unused extension interfaces (aux screen procs)
+	Make lots of functions in kdrive static
+	Eliminate unused code from os library
+
 2003-10-25  Keith Packard  <keithp@keithp.com>
 
 	* hw/kdrive/vesa/vesa.c: (vesaSetShadow), (vesaMapFramebuffer),

Index: configure.ac
===================================================================
RCS file: /cvs/xserver/xserver/configure.ac,v
retrieving revision 3.27.2.3
retrieving revision 3.27.2.4
diff -u -d -r3.27.2.3 -r3.27.2.4
--- configure.ac	25 Oct 2003 06:10:47 -0000	3.27.2.3
+++ configure.ac	29 Oct 2003 16:26:26 -0000	3.27.2.4
@@ -37,15 +37,6 @@
 AM_PROG_LIBTOOL
 AC_PROG_MAKE_SET
 
-changequote(,)dnl
-if test "x$GCC" = "xyes"; then
-  case " $CFLAGS " in
-  *[\ \	]-Wall[\ \	]*) ;;
-  *) CFLAGS="$CFLAGS -Wall" ;;
-  esac
-fi
-changequote([,])dnl
-
 AC_HEADER_DIRENT
 AC_HEADER_STDC
 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h])
@@ -265,9 +256,16 @@
 AC_SUBST([KDRIVE_INCS])
 
 AC_CHECK_HEADERS([X11/XF86keysym.h],,,${XSERVER_CFLAGS})
-XSERVER_CFLAGS="$XSERVER_CFLAGS "'-I${top_srcdir}/include'
 
 XSERVER_CFLAGS="$XSERVER_CFLAGS "'-I${top_srcdir}/include'
+
+if test "x$GCC" = "xyes"; then
+	GCC_WARNINGS="-Wall -Wpointer-arith -Wstrict-prototypes \
+	-Wmissing-prototypes -Wmissing-declarations \
+	-Wnested-externs -fno-strict-aliasing -Werror"
+	XSERVER_CFLAGS="$GCC_WARNINGS $XSERVER_CFLAGS"
+fi
+
 AC_OUTPUT([
 Makefile
 dix/Makefile