libxtrans: Changes to 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Dec 13 01:16:20 UTC 2024


 Xtrans.c     |    4 ++--
 Xtranslcl.c  |   35 ++++++++++++++++++-----------------
 Xtranssock.c |   44 ++++++++++++++++++++++----------------------
 3 files changed, 42 insertions(+), 41 deletions(-)

New commits:
commit e58ae2d27f7baee28319faa02b77cdc344e2f0ca
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sat Nov 16 16:37:06 2024 -0800

    SocketOpenCOTSServer: handle -Wconditional-uninitialized warning
    
    Clears warning from clang 13:
    
    .../include/X11/Xtrans/Xtranssock.c:670:14: warning: variable 'ciptr'
     may be uninitialized when used here [-Wconditional-uninitialized]
            setsockopt (ciptr->fd, SOL_SOCKET, SO_REUSEADDR,
                        ^~~~~
    .../include/X11/Xtrans/Xtranssock.c:624:25: note: initialize the
     variable 'ciptr' to silence this warning
        XtransConnInfo      ciptr;
                                 ^
                                  = NULL
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/26>

commit 3fc4f55eb36c02fab3a5b04610d91c481d6a5aec
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sat Nov 16 15:08:20 2024 -0800

    SocketOpenCOTSClientBase: handle -Wconditional-uninitialized warning
    
    Clears warning from clang 13:
    
    .../include/X11/Xtrans/Xtranssock.c:602:12: warning: variable 'ciptr'
     may be uninitialized when used here [-Wconditional-uninitialized]
        return ciptr;
               ^~~~~
    .../include/X11/Xtrans/Xtranssock.c:575:25: note: initialize the
     variable 'ciptr' to silence this warning
        XtransConnInfo      ciptr;
                                 ^
                                  = NULL
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/26>

commit dc71da9eb353f2e41af96923f292c621aeddd37f
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sat Nov 16 14:46:29 2024 -0800

    Clear -Wmissing-variable-declarations from clang 13
    
    Silences 7 warnings of the form:
    
    .../include/X11/Xtrans/Xtranslcl.c:1347:12: warning: no previous extern
     declaration for non-static variable '_FSTransLocalFuncs'
     [-Wmissing-variable-declarations]
    Xtransport      TRANS(LocalFuncs) = {
                    ^
    .../include/X11/Xtrans/Xtranslcl.c:1347:1: note: declare 'static' if the
     variable is not intended to be used outside of this translation unit
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/26>

commit 1dda77bb6ac9f473513a80e8ce5b32c4bde3448a
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sat Nov 16 14:23:25 2024 -0800

    Quiet -Wformat-pedantic warnings from clang 13 for non-void-* args to %p
    
    Clears 23 warnings of the form:
    .../include/X11/Xtrans/Xtrans.c:129:36: warning: format specifies type
     'void *' but the argument has type 'XtransConnInfo'
     (aka 'struct _XtransConnInfo *') [-Wformat-pedantic]
        prmsg (3,"FreeConnInfo(%p)\n", ciptr);
                               ~~      ^~~~~
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/26>



More information about the xorg-commit mailing list