mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 09:20:02 +01:00
Gets rid of gcc 4.8 warnings:
dmxinputinit.c: In function ‘dmxInputScanForExtensions’:
dmxinputinit.c:877:14: warning: declaration of ‘display’ shadows a global declaration [-Wshadow]
Display *display;
^
In file included from ../../../include/windowstr.h:60:0,
from dmxinputinit.c:72:
../../../include/opaque.h:52:30: warning: shadowed declaration is here [-Wshadow]
extern _X_EXPORT const char *display;
^
glxcmds.c: In function ‘__glXCreatePbuffer’:
glxcmds.c:3397:21: warning: declaration of ‘pc’ shadows a parameter [-Wshadow]
CARD32 *pc = (CARD32 *) (be_req + 1);
^
glxcmds.c:3314:52: warning: shadowed declaration is here [-Wshadow]
__glXCreatePbuffer(__GLXclientState * cl, GLbyte * pc)
^
glxscreens.c: In function ‘CalcServerVersionAndExtensions’:
glxscreens.c:139:35: warning: declaration of ‘req’ shadows a previous local [-Wshadow]
xGLXQueryServerStringReq *req;
^
glxscreens.c:68:26: warning: shadowed declaration is here [-Wshadow]
xGLXQueryVersionReq *req;
^
glxscreens.c:140:36: warning: declaration of ‘reply’ shadows a previous local [-Wshadow]
xGLXQueryServerStringReply reply;
^
glxscreens.c:69:27: warning: shadowed declaration is here [-Wshadow]
xGLXQueryVersionReply reply;
^
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Rémi Cardona <remi@gentoo.org>
Reviewed-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| atKeynames.h | ||
| ChkNotMaskEv.c | ||
| ChkNotMaskEv.h | ||
| dmxarg.c | ||
| dmxarg.h | ||
| dmxbackend.c | ||
| dmxbackend.h | ||
| dmxcommon.c | ||
| dmxcommon.h | ||
| dmxconsole.c | ||
| dmxconsole.h | ||
| dmxdetach.c | ||
| dmxdummy.c | ||
| dmxdummy.h | ||
| dmxevents.c | ||
| dmxevents.h | ||
| dmxinputinit.c | ||
| dmxinputinit.h | ||
| dmxmap.c | ||
| dmxmap.h | ||
| dmxmotion.c | ||
| dmxmotion.h | ||
| dmxsigio.c | ||
| dmxsigio.h | ||
| dmxxinput.c | ||
| lnx-keyboard.c | ||
| lnx-keyboard.h | ||
| lnx-ms.c | ||
| lnx-ms.h | ||
| lnx-ps2.c | ||
| lnx-ps2.h | ||
| Makefile.am | ||
| usb-common.c | ||
| usb-common.h | ||
| usb-keyboard.c | ||
| usb-keyboard.h | ||
| usb-mouse.c | ||
| usb-mouse.h | ||
| usb-other.c | ||
| usb-other.h | ||
| usb-private.h | ||