libX11: Changes to 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Sep 7 16:49:41 UTC 2024


 src/SetFPath.c |   60 +++++++++++++++++++++++++++++++--------------------------
 1 file changed, 33 insertions(+), 27 deletions(-)

New commits:
commit 86e71472bc826ac5c850e200cb3820485b5689cf
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sat Aug 31 10:49:16 2024 -0700

    SetFontPath: if ndirs is 0, skip work to make a list of directories
    
    Clears warning from gcc 14.1:
    
    SetFPath.c: In function ‘XSetFontPath’:
    ../include/X11/Xlibint.h:463:24: warning: argument 1 value is zero
     [-Walloc-zero]
      463 | # define Xmalloc(size) malloc((size_t)(size))
          |                        ^~~~~~~~~~~~~~~~~~~~~~
    SetFPath.c:61:18: note: in expansion of macro ‘Xmalloc’
       61 |         if ((p = Xmalloc (nbytes))) {
          |                  ^~~~~~~
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Part-of: <https://gitlab.freedesktop.org/xorg/lib/libx11/-/merge_requests/266>



More information about the xorg-commit mailing list