xf86-video-savage: Changes to 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Jul 20 22:29:50 UTC 2024
src/savage_dri.c | 4 ++--
src/savage_driver.c | 6 +++---
src/savage_vbe.c | 4 ++--
3 files changed, 7 insertions(+), 7 deletions(-)
New commits:
commit 09f6c06f0a793c7d297f152227b551c128f20875
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Jul 14 13:40:43 2024 -0700
Move sizeof to second argument in calloc calls
Clears -Wcalloc-transposed-args warnings from gcc 14.1, such as:
savage_dri.c: In function ‘SAVAGEDRIScreenInit’:
savage_dri.c:732:46: warning: ‘calloc’ sizes specified with ‘sizeof’ in the
earlier argument and not in the later argument [-Wcalloc-transposed-args]
732 | pSAVAGEDRI = (SAVAGEDRIPtr)calloc( sizeof(SAVAGEDRIRec), 1 );
| ^~~~~~~~~~~~
savage_dri.c:732:46: 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-savage/-/merge_requests/13>
More information about the xorg-commit
mailing list