Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/trunk]: xsrc/external/mit/xterm/dist xterm: fix Clang build on i386



details:   https://anonhg.NetBSD.org/xsrc/rev/c5db50e14b3f
branches:  trunk
changeset: 10717:c5db50e14b3f
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat May 15 19:30:15 2021 +0000

description:
xterm: fix Clang build on i386

xsrc/external/mit/xterm/dist/misc.c:3250:47: error: format specifies
type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned
int') [-Werror,-Wformat]

diffstat:

 external/mit/xterm/dist/misc.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r c4728eb953ef -r c5db50e14b3f external/mit/xterm/dist/misc.c
--- a/external/mit/xterm/dist/misc.c    Mon May 10 12:29:11 2021 +0000
+++ b/external/mit/xterm/dist/misc.c    Sat May 15 19:30:15 2021 +0000
@@ -3247,7 +3247,7 @@
 
     if (have == 0 || have > MAX_U_STRING) {
        if (resource.reportColors) {
-           printf("color  (ignored, length %lu)\n", have);
+           printf("color  (ignored, length %lu)\n", (unsigned long)have);
        }
     } else if (XParseColor(screen->display, cmap, spec, def)) {
        XColor save_def = *def;



Home | Main Index | Thread Index | Old Index