diff options
author | Keith Packard <keithp@keithp.com> | 2013-11-15 05:41:54 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-01-12 10:14:49 -0800 |
commit | 00438c9f943b219ba33055969ae7f9ba07214b2a (patch) | |
tree | d7e00f3fb68ee8741d3a9678e417c21ee2f8419b /exa/exa.c | |
parent | 6e51645b4796fc3a02206fefd416b84beb2fcdf7 (diff) |
exa: Clean up warnings
Declare GC ops/funcs as const.
Use 'typeof' in the 'swap' macro to capture the right type.
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'exa/exa.c')
-rw-r--r-- | exa/exa.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -620,8 +620,8 @@ exaCreateGC(GCPtr pGC) swap(pExaScr, pScreen, CreateGC); if ((ret = (*pScreen->CreateGC) (pGC))) { - wrap(pExaGC, pGC, funcs, (GCFuncs *) &exaGCFuncs); - wrap(pExaGC, pGC, ops, (GCOps *) &exaOps); + wrap(pExaGC, pGC, funcs, &exaGCFuncs); + wrap(pExaGC, pGC, ops, &exaOps); } swap(pExaScr, pScreen, CreateGC); |