xf86-video-vesa: Changes to 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Jul 20 22:28:15 UTC 2024
src/vesa.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit ec03b47ee9566b85bb39359000f3c0aed047c1a5
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Jul 14 14:11:08 2024 -0700
Fix 2 -Wcalloc-transposed-args warnings
Reported by gcc 14.1:
vesa.c: In function ‘VESAGetRec’:
vesa.c:285:46: warning: ‘calloc’ sizes specified with ‘sizeof’ in the
earlier argument and not in the later argument [-Wcalloc-transposed-args]
285 | pScrn->driverPrivate = calloc(sizeof(VESARec), 1);
| ^~~~~~~
vesa.c:285:46: note: earlier argument should specify number of elements,
later size of each element
vesa.c: In function ‘VESASetModeParameters’:
vesa.c:300:33: warning: ‘calloc’ sizes specified with ‘sizeof’ in the
earlier argument and not in the later argument [-Wcalloc-transposed-args]
300 | data->block = calloc(sizeof(VbeCRTCInfoBlock), 1);
| ^~~~~~~~~~~~~~~~
vesa.c:300:33: note: earlier argument should specify number of elements,
later size of each element
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vesa/-/merge_requests/11>
More information about the xorg-commit
mailing list