diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-03-24 16:27:00 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-03-24 16:30:38 -0700 |
commit | 67a512759f0d8d4e16585b1f04c071f3ea08b8fa (patch) | |
tree | 9dd6f967df01adf5ab4490d635264473b38c0ee4 /configure.ac | |
parent | 4fc3902a090c8ed2aff11d6e8a2c0df600d69966 (diff) |
Add explicit casts to clear implicit conversion warnings
xdpyinfo.c:173:17: warning: implicit conversion changes signedness: 'int' to
'size_t' (aka 'unsigned long') [-Wsign-conversion]
qsort(extlist, n, sizeof(char *), StrCmp);
~~~~~ ^
xdpyinfo.c:183:26: warning: implicit conversion changes signedness: 'int' to
'unsigned long' [-Wsign-conversion]
qe_cookies = calloc(n, sizeof(xcb_query_extension_cookie_t));
~~~~~~ ^
xdpyinfo.c:195:12: warning: implicit conversion loses integer precision:
'unsigned long' to 'uint16_t' (aka 'unsigned short') [-Wconversion]
strlen(extlist[i]),
^~~~~~~~~~~~~~~~~~
xdpyinfo.c:1382:51: warning: implicit conversion loses integer precision:
'unsigned long' to 'int' [-Wshorten-64-to-32]
int extlen = strlen(known_extensions[i].extname) + 1;
~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions