summaryrefslogtreecommitdiff
path: root/include/X11/extensions
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-11-19 10:47:24 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-11-19 10:48:42 -0800
commit5129fc91b8483ec3a11e18280eac00857311edfa (patch)
tree69fada0e79f150e4208bbce099617a9a641222ce /include/X11/extensions
parentaba73d85ce4a2fc1a5fb0ec27b15415eed21ebae (diff)
Quiet -Wconditional-uninitialized warnings from clang
I believe these were false positives, as the variables were initialized unless the image = NULL -> if (!image) return NULL code path was followed, but this makes clang stop warning. Cursor.c:144:8: warning: variable 'nbytes' may be uninitialized when used here [-Wconditional-uninitialized] if(nbytes > nread) ^~~~~~ Cursor.c:80:21: note: initialize the variable 'nbytes' to silence this warning size_t nbytes , nread ; ^ = 0 Cursor.c:144:17: warning: variable 'nread' may be uninitialized when used here [-Wconditional-uninitialized] if(nbytes > nread) ^~~~~ Cursor.c:80:29: note: initialize the variable 'nread' to silence this warning size_t nbytes , nread ; ^ = 0 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'include/X11/extensions')
0 files changed, 0 insertions, 0 deletions