xf86-video-tdfx: Changes to 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Jul 20 22:28:50 UTC 2024


 src/tdfx_dri.c    |    2 +-
 src/tdfx_driver.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 5253278119a4db07b5a01856f0de34e576f4dcdd
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sun Jul 14 14:05:34 2024 -0700

    Move sizeof to second argument in calloc calls
    
    Clears -Wcalloc-transposed-args warnings from gcc 14.1, such as:
    
    tdfx_dri.c: In function ‘TDFXDRIScreenInit’:
    tdfx_dri.c:173:46: warning: ‘calloc’ sizes specified with ‘sizeof’ in the
     earlier argument and not in the later argument [-Wcalloc-transposed-args]
      173 |   if (!(pTDFXDRI = (TDFXDRIPtr)calloc(sizeof(TDFXDRIRec),1))) {
          |                                              ^~~~~~~~~~
    tdfx_dri.c:173: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-tdfx/-/merge_requests/10>



More information about the xorg-commit mailing list