summaryrefslogtreecommitdiff
path: root/exa
diff options
context:
space:
mode:
authorEric Engestrom <eric.engestrom@imgtec.com>2018-03-13 10:55:22 +0000
committerAdam Jackson <ajax@redhat.com>2018-03-21 11:22:59 -0400
commit610055809f4030bd0e7312c6b0c561fdfe6e0183 (patch)
tree936c2aef1f73780a1ad79eaf36b019b32048c672 /exa
parentd36128a72acac4d54813c52c93efefad2dc9af41 (diff)
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>
Diffstat (limited to 'exa')
-rw-r--r--exa/exa_priv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/exa/exa_priv.h b/exa/exa_priv.h
index ca4db720f..912e21478 100644
--- a/exa/exa_priv.h
+++ b/exa/exa_priv.h
@@ -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; \
}