pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/jam devel/jam: fix -Wchar-subscripts



details:   https://anonhg.NetBSD.org/pkgsrc/rev/eb57c5a5c0fb
branches:  trunk
changeset: 414401:eb57c5a5c0fb
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Mar 26 21:19:58 2020 +0000

description:
devel/jam: fix -Wchar-subscripts

diffstat:

 devel/jam/distinfo              |   3 ++-
 devel/jam/patches/patch-rules.h |  33 +++++++++++++++++++++++++++++++++
 2 files changed, 35 insertions(+), 1 deletions(-)

diffs (51 lines):

diff -r add06a7bf53f -r eb57c5a5c0fb devel/jam/distinfo
--- a/devel/jam/distinfo        Thu Mar 26 21:09:20 2020 +0000
+++ b/devel/jam/distinfo        Thu Mar 26 21:19:58 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.11 2017/07/27 08:48:34 wiz Exp $
+$NetBSD: distinfo,v 1.12 2020/03/26 21:19:58 rillig Exp $
 
 SHA1 (ftjam-2.5.2.tar.bz2) = 08bad35e74ec85c4592d378014586174d22297b5
 RMD160 (ftjam-2.5.2.tar.bz2) = fd1d1161963ba85be09aecffe832cf1db8a7b70f
@@ -7,3 +7,4 @@
 SHA1 (patch-aa) = 64a149995f63cd3d3648f4597769e2ec57b0b0ba
 SHA1 (patch-ab) = 6f6fce24c46d799d7ef9885271960c3d2038f93d
 SHA1 (patch-jambase.c) = 906d3589718e4bf87a0f1740d876c2ddc7a7f90d
+SHA1 (patch-rules.h) = aca330528c722cce5fbf0587fd8c34c457dd8c62
diff -r add06a7bf53f -r eb57c5a5c0fb devel/jam/patches/patch-rules.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/jam/patches/patch-rules.h   Thu Mar 26 21:19:58 2020 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-rules.h,v 1.1 2020/03/26 21:19:58 rillig Exp $
+
+make.c: In function 'make0':
+make.c:249:41: error: array subscript has type 'char' [-Werror=char-subscripts]
+    spaces( depth ), t->name, target_bind[ t->binding ] );^M
+                                         ^
+make.c:484:20: error: array subscript has type 'char' [-Werror=char-subscripts]
+   flag, target_fate[ t->fate ],^M
+                    ^
+make.c:490:33: error: array subscript has type 'char' [-Werror=char-subscripts]
+   printf( "%s %s\n", target_fate[ t->fate ], t->name );^M
+                                 ^
+
+--- rules.h.orig       2006-06-05 10:52:11.000000000 +0000
++++ rules.h
+@@ -115,7 +115,7 @@ struct _target {
+ # define      T_FLAG_NOUPDATE 0x20    /* NOUPDATE applied */
+ # define      T_FLAG_INTERNAL 0x40    /* internal INCLUDES node */
+ 
+-      char    binding;                /* how target relates to real file */
++      unsigned char   binding;        /* how target relates to real file */
+ 
+ # define      T_BIND_UNBOUND  0       /* a disembodied name */
+ # define      T_BIND_MISSING  1       /* couldn't find real file */
+@@ -127,7 +127,7 @@ struct _target {
+ 
+       time_t  time;                   /* update time */
+       time_t  leaf;                   /* update time of leaf sources */
+-      char    fate;                   /* make0()'s diagnosis */
++      unsigned char   fate;           /* make0()'s diagnosis */
+ 
+ # define      T_FATE_INIT     0       /* nothing done to target */
+ # define      T_FATE_MAKING   1       /* make0(target) on stack */



Home | Main Index | Thread Index | Old Index