Don't define as const's to avoid compiler optimization & warning.

This commit is contained in:
Alan Hourihane 2006-11-21 10:59:31 +00:00
parent 64920ed10a
commit 33d2835182
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}