xcalc: Changes to 'master'

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


 actions.c    |  150 +++++++++++++++++++++++++++++++++++++++--------------------
 configure.ac |    2 
 math.c       |    2 
 xcalc.c      |   11 ++--
 4 files changed, 109 insertions(+), 56 deletions(-)

New commits:
commit f7017f020749b0cb7787785f56193fa80ba95429
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sun Dec 8 15:50:32 2024 -0800

    Add cast to quiet -Wshorten-64-to-32 warning
    
    Clears clang 13 warning of:
    math.c:433:29: warning: implicit conversion loses integer precision:
     'unsigned long' to 'int' [-Wshorten-64-to-32]
        exponent=strlen(dispstr)-1;  /* where the '-' goes */
                ~~~~~~~~~~~~~~~~^~
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Part-of: <https://gitlab.freedesktop.org/xorg/app/xcalc/-/merge_requests/15>

commit 25ed62879ef69a35eeeaef1ebb06ff3a057e77c6
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sun Dec 8 15:42:13 2024 -0800

    Add unused attributes to unused parameters of callback functions
    
    Clears 204 clang warnings of the form:
    xcalc.c:358:31: warning: unused parameter 'w' [-Wunused-parameter]
    static Boolean convert(Widget w, Atom *selection, Atom *target, Atom *type,
                                  ^
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Part-of: <https://gitlab.freedesktop.org/xorg/app/xcalc/-/merge_requests/15>

commit 2e019663b00ce409bb31d97ec99bff95232d0381
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sun Dec 8 15:32:37 2024 -0800

    Add noreturn attribute to Syntax() prototype
    
    Clears clang warning of:
    xcalc.c:330:1: warning: function 'Syntax' could be declared with
     attribute 'noreturn' [-Wmissing-noreturn]
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Part-of: <https://gitlab.freedesktop.org/xorg/app/xcalc/-/merge_requests/15>



More information about the xorg-commit mailing list