summaryrefslogtreecommitdiff
path: root/src/glx/x11
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@tungstengraphics.com>2006-11-21 10:59:31 +0000
committerAlan Hourihane <alanh@tungstengraphics.com>2006-11-21 10:59:31 +0000
commit33d2835182f5f8a1f283811cbd13afe79cf6ea21 (patch)
tree10807c6b40dbebcb4d8b9bc738343d4f0f80df48 /src/glx/x11
parent64920ed10ac702ed9be33d4045faa71f06e05029 (diff)
Don't define as const's to avoid compiler optimization & warning.
Diffstat (limited to 'src/glx/x11')
-rw-r--r--src/glx/x11/XF86dri.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glx/x11/XF86dri.c b/src/glx/x11/XF86dri.c
index 0ce588276b..8909a04772 100644
--- a/src/glx/x11/XF86dri.c
+++ b/src/glx/x11/XF86dri.c
@@ -203,7 +203,7 @@ PUBLIC Bool XF86DRIOpenConnection(dpy, screen, hSAREA, busIdString)
*hSAREA = rep.hSAREALow;
if (sizeof(drm_handle_t) == 8) {
- const int shift = 32; /* var to prevent warning on next line */
+ int shift = 32; /* var to prevent warning on next line */
*hSAREA |= ((drm_handle_t) rep.hSAREAHigh) << shift;
}
@@ -566,7 +566,7 @@ PUBLIC Bool XF86DRIGetDeviceInfo(dpy, screen, hFrameBuffer,
*hFrameBuffer = rep.hFrameBufferLow;
if (sizeof(drm_handle_t) == 8) {
- const int shift = 32; /* var to prevent warning on next line */
+ int shift = 32; /* var to prevent warning on next line */
*hFrameBuffer |= ((drm_handle_t) rep.hFrameBufferHigh) << shift;
}