Commit f16b5c84 authored by Rob Clark's avatar Rob Clark 💬

build fixes

Fixes

  armsoc_driver.c: In function 'ARMSOCScreenInit':
  armsoc_driver.c:1067:8: error: assignment discards 'const' qualifier from pointer target type [-Werror]

and

  drmmode_display.c: In function 'drmmode_set_mode_major':
  drmmode_display.c:357:4: error: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror]
Signed-off-by: Rob Clark's avatarRob Clark <robdclark@gmail.com>
parent 15c00153
......@@ -951,7 +951,7 @@ ARMSOCScreenInit(SCREEN_INIT_ARGS_DECL)
VisualPtr visual;
xf86CrtcConfigPtr xf86_config;
int j;
char *fbdev;
const char *fbdev;
TRACE_ENTER();
......
......@@ -354,7 +354,7 @@ drmmode_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
drmmode_crtc->last_good_rotation = crtc->rotation;
if (drmmode_crtc->last_good_mode) {
if (drmmode_crtc->last_good_mode->name)
free(drmmode_crtc->last_good_mode->name);
free((void *)drmmode_crtc->last_good_mode->name);
free(drmmode_crtc->last_good_mode);
}
drmmode_crtc->last_good_mode = xf86DuplicateMode(&crtc->mode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment