xclipboard: Changes to 'master'

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


 Makefile.am  |    1 +
 xclipboard.c |   12 ++++--------
 2 files changed, 5 insertions(+), 8 deletions(-)

New commits:
commit 6a3f6fd8544907c0e28a3b97b906b06ca51e0581
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sun Apr 3 14:11:06 2022 -0700

    NewClip: use calloc instead of manually setting values to 0 after malloc
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

commit b43e14be1b0a292fbe71424161c8a9244eea9dab
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sun Apr 3 14:10:16 2022 -0700

    NewCurrentClipContents: fix a -Wnull-dereference warning
    
    xclipboard.c: In function ‘NewCurrentClipContents’:
    xclipboard.c:402:28: warning: potential null pointer dereference [-Wnull-dereference]
         if (strlen (currentClip->clip) != 0)
                     ~~~~~~~~~~~^~~~~~
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

commit 4f7cef0b64f3baf5b07f1b906d646c2ad35812e3
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sun Apr 3 13:59:19 2022 -0700

    Fix a -Wformat-truncation warning
    
    xclipboard.c: In function ‘set_button_state’:
    xclipboard.c:196:52: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=]
         snprintf (labelString, sizeof(labelString), "%d", IndexCurrentClip ());
                                                        ^
    xclipboard.c:196:5: note: ‘snprintf’ output between 2 and 11 bytes into a destination of size 10
         snprintf (labelString, sizeof(labelString), "%d", IndexCurrentClip ());
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

commit 931ad744c4235157c48f1008c4880dc598eaeb13
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sun Apr 3 13:58:18 2022 -0700

    Fix another -Wdiscarded-qualifiers warning
    
    xclipboard.c: In function ‘SaveToFile’:
    xclipboard.c:313:14: warning: assignment discards ‘const’ qualifier from
     pointer target type [-Wdiscarded-qualifiers]
         filename = "clipboard";
                  ^
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

commit 715914f703187eafd17815d673712c609afaf9a0
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sun Apr 3 13:51:53 2022 -0700

    Use _CONST_X_STRING to make libXt declare String as const char *
    
    Gets rid of 20 out of 37 -Wdiscarded-qualifiers errors from gcc
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>



More information about the xorg-commit mailing list