xfontsel: Changes to 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Apr 5 23:25:52 UTC 2022
Makefile.am | 1 +
ULabel.c | 18 +++++++++---------
ULabelP.h | 2 +-
configure.ac | 2 +-
xfontsel.c | 38 ++++++++++++++++++++++----------------
5 files changed, 34 insertions(+), 27 deletions(-)
New commits:
commit 3ef81a443a264c48f606dfedd47eb160822457fa
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Apr 3 15:48:25 2022 -0700
mark Quit() & QuitAction() as noreturn
Clears gcc warnings:
xfontsel.c: In function ‘QuitAction’:
xfontsel.c:1477:1: warning: function might be candidate for
attribute ‘noreturn’ [-Wsuggest-attribute=noreturn]
QuitAction(Widget w, XEvent *event, String *params, Cardinal *num_params)
^~~~~~~~~~
xfontsel.c: In function ‘Quit’:
xfontsel.c:1392:6: warning: function might be candidate for
attribute ‘noreturn’ [-Wsuggest-attribute=noreturn]
void Quit(Widget w, XtPointer closure, XtPointer callData)
^~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit be2a75ec654722b282c9e2fac2b73a4dba9f50d0
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Apr 3 15:45:07 2022 -0700
Clean up variable scoping in GetFontNames()
Gets rid of gcc warning:
xfontsel.c: In function ‘GetFontNames’:
xfontsel.c:498:16: warning: declaration of ‘f’ shadows a previous local [-Wshadow]
int maxField, f;
^
xfontsel.c:446:9: note: shadowed declaration is here
int f, field, count;
^
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 93112d07d66cd9ee93ef00527df1da39dfaf7290
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Apr 3 15:36:59 2022 -0700
Fix -Wsign-compare warning from gcc
ULabel.c: In function ‘SetValues’:
ULabel.c:670:19: warning: comparison between signed and unsigned integer
expressions [-Wsign-compare]
for (i = 0; i < *num_args; i++) {
^
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 954fc5687b9805201c425fd3139acb6d19bd9bd5
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Apr 3 15:34:31 2022 -0700
const cleanup
Clears up 32 out of 49 -Wdiscarded-qualifiers warnings from gcc
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
More information about the xorg-commit
mailing list