libXrandr: Changes to 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Oct 24 21:58:46 UTC 2022
include/X11/extensions/Xrandr.h | 1 -
src/Xrandr.c | 22 +++++++++-------------
src/XrrConfig.c | 28 +++++++++++-----------------
src/XrrCrtc.c | 12 ++++++------
src/XrrMonitor.c | 12 ++++++------
src/XrrOutput.c | 2 +-
src/XrrProperty.c | 13 ++++++-------
src/XrrProvider.c | 18 +++++++-----------
src/XrrProviderProperty.c | 13 ++++++-------
src/XrrScreen.c | 7 ++++---
10 files changed, 56 insertions(+), 72 deletions(-)
New commits:
commit 7181160b2c32b1bb804792990783fa25c1122bae
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Mon Oct 17 17:57:19 2022 -0700
Remove unnecessary casts of return values from malloc()
Not needed in C89 and later
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 8710ed270fbb9ec905b906826cb09095c57003f8
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Mon Oct 17 17:24:23 2022 -0700
Variable scope reductions as recommended by cppcheck
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 684ed1b997f9e8a2fe2219524c1dea04b20a7e25
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Mon Oct 17 16:45:38 2022 -0700
XRRGetProviderInfo: Remove unneeded ProviderInfoExtra
It was always 0, hence caused gcc warnings:
XrrProvider.c: In function ‘XRRGetProviderInfo’:
XrrProvider.c:133:49: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
if (rep.length > INT_MAX >> 2 || rep.length < ProviderInfoExtra >> 2)
^
XrrProvider.c:135:17: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
if (rep.length < ProviderInfoExtra >> 2)
^
XrrProvider.c:135:5: warning: this condition has identical branches [-Wduplicated-branches]
if (rep.length < ProviderInfoExtra >> 2)
^
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 8ddb2aefcda77709cf98f15fbcb7d97a2d00ab7d
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Mon Oct 17 16:36:01 2022 -0700
Xrandr.h: remove misleading comment for XRRGetScreenSizeRange()
Closes: #7
Fixes: 5e94f07 ("GetScreenSizeRange: Document funky return code in the header")
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
More information about the xorg-commit
mailing list