xf86-video-mga: Changes to 'master'

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


 src/mga_dri.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 3279df42ed7231d2ed6d2328c66c1e080ad49f39
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sun Jul 14 13:22:13 2024 -0700

    Fix 2 -Wcalloc-transposed-args warnings
    
    From gcc 14.1:
    
    mga_dri.c: In function ‘MGADRIScreenInit’:
    mga_dri.c:757:40: warning: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
      757 |    pMGADRI = (MGADRIPtr)calloc( sizeof(MGADRIRec), 1 );
          |                                        ^~~~~~~~~
    mga_dri.c:757:40: note: earlier argument should specify number of elements, later size of each element
    mga_dri.c:767:22: warning: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
      767 |       calloc( sizeof(MGADRIServerPrivateRec), 1 );
          |                      ^~~~~~~~~~~~~~~~~~~~~~
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mga/-/merge_requests/12>



More information about the xorg-commit mailing list