xgc: Changes to 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Apr 6 00:04:48 UTC 2022


 Makefile.am |    1 +
 planemask.c |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

New commits:
commit f3424f4c7c7e1aba33d0a117ea90dd5412530f45
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sun Apr 3 16:08:14 2022 -0700

    Fix -Wformat-truncation warning
    
    planemask.c: In function ‘create_planemask_choice’:
    planemask.c:109:43: warning: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size 3 [-Wformat-truncation=]
         snprintf(name, sizeof name, "planemask%d",i);
                                               ^~
    planemask.c:109:33: note: directive argument in the range [0, 2147483647]
         snprintf(name, sizeof name, "planemask%d",i);
                                     ^~~~~~~~~~~~~
    planemask.c:109:5: note: ‘snprintf’ output between 11 and 20 bytes into a destination of size 12
         snprintf(name, sizeof name, "planemask%d",i);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

commit c3e109f0bb814f2a0e3385bdada58a52473397ac
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sun Apr 3 16:04:34 2022 -0700

    Use _CONST_X_STRING to make libXt declare String as const char *
    
    Clears 57 out of 61 -Wdiscarded-qualifiers warnings from gcc
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>



More information about the xorg-commit mailing list