diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-01-01 14:56:54 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-01-01 14:56:54 -0800 |
commit | 1dd66f821d35cccabf45251d2b7857aa2155768d (patch) | |
tree | 8068abf4f1074051455453570b029fea4ad89933 | |
parent | 1654e7338075ee23bdb50037e7d69cb9e577d38d (diff) |
Fix -Wsign-compare warnings in xrestop_client_get_stats
xrestop.c: In function ‘xrestop_client_get_stats’:
xrestop.c:428:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (this_type == app->atoms[ATOM_PIXMAP])
^~
xrestop.c:430:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
else if (this_type == app->atoms[ATOM_WINDOW])
^~
xrestop.c:432:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
else if (this_type == app->atoms[ATOM_GC])
^~
xrestop.c:434:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
else if (this_type == app->atoms[ATOM_FONT])
^~
xrestop.c:436:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
else if (this_type == app->atoms[ATOM_GLYPHSET])
^~
xrestop.c:438:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
else if (this_type == app->atoms[ATOM_PICTURE])
^~
xrestop.c:440:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
else if (this_type == app->atoms[ATOM_COLORMAP_ENTRY])
^~
xrestop.c:442:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
else if (this_type == app->atoms[ATOM_PASSIVE_GRAB])
^~
xrestop.c:444:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
else if (this_type == app->atoms[ATOM_CURSOR])
^~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | xrestop.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -423,7 +423,7 @@ xrestop_client_get_stats(XResTopApp *app, XResTopClient *client) for (j=0; j < n_types; j++) { - int this_type = types[j].resource_type; + Atom this_type = types[j].resource_type; if (this_type == app->atoms[ATOM_PIXMAP]) client->n_pixmaps += types[j].count; |