xf86-video-sis: Changes to 'master'

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


 src/sis_dri.c     |    2 +-
 src/sis_driver.c  |   10 +++++-----
 src/sis_utility.c |    2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)

New commits:
commit e9ea79173cec022dacebee204a43f753644240ac
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sun Jul 14 13:54:57 2024 -0700

    Move sizeof to second argument in calloc calls
    
    Clears -Wcalloc-transposed-args warnings from gcc 14.1, such as:
    
    sis_utility.c: In function ‘SiSCtrlExtInit’:
    sis_utility.c:1983:35: warning: ‘calloc’ sizes specified with ‘sizeof’ in the
     earlier argument and not in the later argument [-Wcalloc-transposed-args]
     1983 |       if(!(myctrl = calloc(sizeof(xSiSCtrlScreenTable), 1)))
          |                                   ^~~~~~~~~~~~~~~~~~~
    sis_utility.c:1983:35: 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-sis/-/merge_requests/28>



More information about the xorg-commit mailing list