xclipboard: Changes to 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Apr 12 21:34:04 UTC 2024


 .gitlab-ci.yml |    4 ++--
 xclipboard.c   |   18 +++++++++++-------
 2 files changed, 13 insertions(+), 9 deletions(-)

New commits:
commit e074743e9c38afdcf5809d857921959bb6c14241
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sun Apr 7 12:07:58 2024 -0700

    Handle -Wdiscarded-qualifiers warnings for XawTextBlock ptr
    
    xclipboard.c: In function ‘NewCurrentClip’:
    xclipboard.c:384:29: warning: passing argument 1 of ‘NewCurrentClipContents’
     discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
      384 |     NewCurrentClipContents ("", 0);
          |                             ^~
    xclipboard.c:77:44: note: expected ‘char *’ but argument is of type
     ‘const char *’
       77 | static void NewCurrentClipContents ( char *data, int len );
          |                                      ~~~~~~^~~~
    xclipboard.c: In function ‘EraseTextWidget’:
    xclipboard.c:420:15: warning: assignment discards ‘const’ qualifier from
     pointer target type [-Wdiscarded-qualifiers]
      420 |     block.ptr = "";
          |               ^
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Part-of: <https://gitlab.freedesktop.org/xorg/app/xclipboard/-/merge_requests/4>

commit 98ebfcf3bc9a9f7cdd94eea880bd64e2af705fd5
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sat Apr 6 11:26:45 2024 -0700

    Fix -Wbad-function-cast warnings from casting Atom to void *
    
    xclipboard.c: In function ‘InsertClipboard’:
    xclipboard.c:494:33: warning: cast from function call of type ‘Atom’
     {aka ‘long unsigned int’} to non-matching type ‘void *’ [-Wbad-function-cast]
      494 |                                 (XtPointer)(XA_COMPOUND_TEXT(d)),
          |                                 ^
    xclipboard.c: In function ‘LoseSelection’:
    xclipboard.c:637:25: warning: cast from function call of type ‘Atom’
     {aka ‘long unsigned int’} to non-matching type ‘void *’ [-Wbad-function-cast]
      637 |                         (XtPointer)(XA_UTF8_STRING(d)), CurrentTime);
          |                         ^
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Part-of: <https://gitlab.freedesktop.org/xorg/app/xclipboard/-/merge_requests/4>

commit b2d0637073564107c1e038da339d47e2e8c40bb9
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Thu Jul 28 17:30:21 2022 -0700

    gitlab CI: stop requiring Signed-off-by in commits
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Part-of: <https://gitlab.freedesktop.org/xorg/app/xclipboard/-/merge_requests/4>



More information about the xorg-commit mailing list