xf86-input-keyboard: Changes to 'master'

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


 src/bsd_kbd.c |    2 +-
 src/kbd.c     |    2 +-
 src/sun_kbd.c |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 6c2a8e59f086319260d43ede962de71844541233
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sun Jul 14 11:33:37 2024 -0700

    Move sizeof to second argument in calloc calls
    
    Clears -Wcalloc-transposed-args warnings from gcc 14.1, such as:
    
    kbd.c: In function ‘KbdPreInit’:
    kbd.c:160:32: warning: ‘calloc’ sizes specified with ‘sizeof’ in the
     earlier argument and not in the later argument [-Wcalloc-transposed-args]
      160 |     if (!(pKbd = calloc(sizeof(KbdDevRec), 1))) {
          |                                ^~~~~~~~~
    kbd.c:160: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-keyboard/-/merge_requests/14>



More information about the xorg-commit mailing list