libXcomposite: Changes to 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Nov 29 19:30:03 UTC 2022
configure.ac | 3 +-
src/Xcomposite.c | 62 ++++++++++++++++++++++++++--------------------------
src/xcompositeint.h | 5 ++--
3 files changed, 37 insertions(+), 33 deletions(-)
New commits:
commit 352885a4ff166cd065da1944649a4f12801dd4d2
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Mon Nov 21 11:54:58 2022 -0800
XCompositeCloseDisplay: Mark codes as unused
Quiets clang warning:
Xcomposite.c:91:50: warning: unused parameter 'codes' [-Wunused-parameter]
XCompositeCloseDisplay (Display *dpy, XExtCodes *codes)
^
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 544392051e5f566c4eb29fa2e40dbce748935728
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Mon Nov 21 11:50:04 2022 -0800
Handle implicit conversion warnings from clang
Clears 13 -Wimplicit-int-conversion, 10 -Wshorten-64-to-32, and
2 -Wsign-conversion warnings.
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 253561cfcc3b95d21046bf08467fa0f68be385da
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Mon Nov 21 11:33:26 2022 -0800
Wrap XComposite*CheckExtension() in do { ... } while(0)
Makes macro expansion safer and eliminates -Wextra-semi-stmt warnings
from clang every time it is called due to semicolon after bracket.
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 8a10ff647b795b778af58037a8cbc23a03289e9a
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Mon Nov 21 11:29:44 2022 -0800
Remove unnecessary casts from malloc() and free() calls
Not needed in C89 and later
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit c0c02375b5a319fffe98b8f80ac3c25a8ab3e362
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Mon Nov 21 11:26:44 2022 -0800
Mark two dpy parameters const as suggested by cppcheck
Xcomposite.c:56:66: style: Parameter 'dpy' can be declared with const
[constParameter]
XCompositeExtRemoveDisplay (XCompositeExtInfo *extinfo, Display *dpy)
^
Xcomposite.c:175:22: style: Parameter 'dpy' can be declared with const
[constParameter]
Display *dpy)
^
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
More information about the xorg-commit
mailing list