libXfixes: Changes to 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Nov 29 19:34:29 UTC 2022
configure.ac | 3 -
src/Cursor.c | 67 +++++++++++++------------
src/Disconnect.c | 8 +--
src/Region.c | 145 ++++++++++++++++++++++++++++---------------------------
src/SaveSet.c | 10 +--
src/Selection.c | 8 +--
src/Xfixes.c | 46 ++++++++---------
src/Xfixesint.h | 4 -
8 files changed, 150 insertions(+), 141 deletions(-)
New commits:
commit 332394278b7110a774b5277bb3cfc58c42cd888c
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sat Nov 19 12:09:43 2022 -0800
XFixesCloseDisplay: Mark codes as unused
Quiets clang warning:
Xfixes.c:206:46: warning: unused parameter 'codes' [-Wunused-parameter]
XFixesCloseDisplay (Display *dpy, XExtCodes *codes)
^
Raises minimum required version of xproto to 7.0.22 (released June 2011)
for the definition of _X_UNUSED
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 64fc7592fd27bbee300085773247dd1737a5af1b
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sat Nov 19 12:05:59 2022 -0800
Handle 6 of 9 -Wsign-conversion warnings from clang
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 80ea445ff6865f9a04c4522c6d8b6cf940b10397
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sat Nov 19 11:28:19 2022 -0800
Handle 60 of 60 -Wimplicit-int-conversion warnings from clang
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 26cd44cc3d2b5db5caa42d9203a866f12c039980
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sat Nov 19 11:18:11 2022 -0800
Handle 63 of 63 -Wshorten-64-to-32 warnings from clang
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 2047abb224051d578a6a320b776a7e8a969a980c
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sat Nov 19 10:52:50 2022 -0800
Resolve 36 of 40 -Wextra-semi-stmt warnings from clang
Wrap XFixesCheckExtension() & XFixesSimpleCheckExtension() macro
bodies in do { ... } while(0) so that they use the semicolon
provided by callers instead of letting it dangle as another statement.
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 5129fc91b8483ec3a11e18280eac00857311edfa
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sat Nov 19 10:47:24 2022 -0800
Quiet -Wconditional-uninitialized warnings from clang
I believe these were false positives, as the variables were initialized
unless the image = NULL -> if (!image) return NULL code path was followed,
but this makes clang stop warning.
Cursor.c:144:8: warning: variable 'nbytes' may be uninitialized when used here
[-Wconditional-uninitialized]
if(nbytes > nread)
^~~~~~
Cursor.c:80:21: note: initialize the variable 'nbytes' to silence this warning
size_t nbytes , nread ;
^
= 0
Cursor.c:144:17: warning: variable 'nread' may be uninitialized when used here
[-Wconditional-uninitialized]
if(nbytes > nread)
^~~~~
Cursor.c:80:29: note: initialize the variable 'nread' to silence this warning
size_t nbytes , nread ;
^
= 0
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit aba73d85ce4a2fc1a5fb0ec27b15415eed21ebae
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sat Nov 19 10:40:43 2022 -0800
Mark two dpy parameters const as suggested by cppcheck
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 82662a3129c59d5950b52ff4daf2e47c7a87327b
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sat Nov 19 10:36:54 2022 -0800
Variable scope reduction as recommended by cppcheck
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit e56e1003ab225d383cda67eb61737bc14e92332c
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sat Nov 19 10:29:07 2022 -0800
Remove unnecessary casts from malloc & free calls
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
More information about the xorg-commit
mailing list