exa: promise not to touch the data when swapping pointers

exa/exa.c:525:10: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
     swap(pExaGC, pGC, funcs);
          ^

Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
Eric Engestrom 2018-03-13 10:55:22 +00:00 committed by Adam Jackson
parent d36128a72a
commit 610055809f
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ extern DevPrivateKeyRec exaScreenPrivateKeyRec;
}
#else
#define swap(priv, real, mem) {\
void *tmp = priv->Saved##mem; \
const void *tmp = priv->Saved##mem; \
priv->Saved##mem = real->mem; \
real->mem = tmp; \
}