xf86-input-mouse: Changes to 'master'

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


 src/bsd_mouse.c  |    2 +-
 src/hurd_mouse.c |    2 +-
 src/lnx_mouse.c  |    2 +-
 src/mouse.c      |    4 ++--
 src/sun_mouse.c  |    4 ++--
 5 files changed, 7 insertions(+), 7 deletions(-)

New commits:
commit 9cc5531bf1713ebdd06a88b7e05ea4bedea3d61c
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sun Jul 14 13:14:16 2024 -0700

    Move sizeof to second argument in calloc calls
    
    Clears -Wcalloc-transposed-args warnings from gcc 14.1, such as:
    
    mouse.c: In function ‘MousePreInit’:
    mouse.c:900:32: warning: ‘calloc’ sizes specified with ‘sizeof’ in the
     earlier argument and not in the later argument [-Wcalloc-transposed-args]
      900 |     if (!(pMse = calloc(sizeof(MouseDevRec), 1)))
          |                                ^~~~~~~~~~~
    mouse.c:900:32: 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-input-mouse/-/merge_requests/17>



More information about the xorg-commit mailing list