diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-10-24 18:11:31 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-10-24 18:15:31 -0700 |
commit | 0cf445b33e15df1c194f2a8e2683ba5b1b2e4254 (patch) | |
tree | 3bb1f1f980cbd81355d51b86de4e1ac3e91c3ab7 /README.md | |
parent | 70b32490063a227e48fe06ec2e0e2c976b6eff12 (diff) |
Resolve implicit conversion warnings from clang
xlsclients.c:303:47: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion]
qt_reply = malloc(sizeof(*qt_reply) * cs->list_length);
~ ~~~~^~~~~~~~~~~
xlsclients.c:323:31: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion]
cs = malloc(sizeof(*cs) + child_count * (sizeof(*cs->prop_cookie) + sizeof(*cs->tree_cookie) + sizeof(*cs->win)));
^~~~~~~~~~~ ~
xlsclients.c:515:38: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion]
class_len = wm_class->value_len - name_len;
~ ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
xlsclients.c:515:40: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion]
class_len = wm_class->value_len - name_len;
~ ^~~~~~~~
xlsclients.c:514:56: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
name_len = strnlen(res_name, wm_class->value_len) + 1;
~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
xlsclients.c:520:15: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
class_len = strlen(res_class);
~ ^~~~~~~~~~~~~~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions