summaryrefslogtreecommitdiff
path: root/transform.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-07-14 10:18:57 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-07-14 10:18:57 -0700
commit8ef3f9e4ec1e75b24b84ab7ab3fb7a0e2b84b12d (patch)
tree6845f8ff07d4837d390ebc64aeae031938dde3cf /transform.c
parent637b948ec83fd61a8ee59a9d8ea9f363f74af0df (diff)
Fix -Wcalloc-transposed-args warningsHEADmaster
From gcc 14.1: Eyes.c: In function ‘EyesConfigure’: Eyes.c:132:45: warning: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Wcalloc-transposed-args] 132 | EyeConfiguration *c = calloc(sizeof(EyeConfiguration), 1); | ^~~~~~~~~~~~~~~~ Eyes.c:132:45: note: earlier argument should specify number of elements, later size of each element Eyes.c: In function ‘Initialize’: Eyes.c:409:36: warning: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Wcalloc-transposed-args] 409 | TPoint *pupils = calloc(sizeof(TPoint), config->count); | ^~~~~~ Eyes.c:409:36: note: earlier argument should specify number of elements, later size of each element Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/app/xeyes/-/merge_requests/8>
Diffstat (limited to 'transform.c')
0 files changed, 0 insertions, 0 deletions