pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/openjade textproc/openjade: fix -Wchar-subscr...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d96937267bb1
branches:  trunk
changeset: 414403:d96937267bb1
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Mar 26 21:47:54 2020 +0000

description:
textproc/openjade: fix -Wchar-subscripts

diffstat:

 textproc/openjade/distinfo                              |   3 +-
 textproc/openjade/patches/patch-jade_HtmlFOTBuilder.cxx |  33 +++++++++++++++++
 2 files changed, 35 insertions(+), 1 deletions(-)

diffs (54 lines):

diff -r 9cf0c4be2ac7 -r d96937267bb1 textproc/openjade/distinfo
--- a/textproc/openjade/distinfo        Thu Mar 26 21:32:37 2020 +0000
+++ b/textproc/openjade/distinfo        Thu Mar 26 21:47:54 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.16 2017/07/15 14:34:15 wiz Exp $
+$NetBSD: distinfo,v 1.17 2020/03/26 21:47:54 rillig Exp $
 
 SHA1 (openjade-1.3.2.tar.gz) = 54e1999f41450fbd62c5d466002d79d3efca2321
 RMD160 (openjade-1.3.2.tar.gz) = 3b12f6596a42c49a60cc07cd9b8f4c5fdf3bafd2
@@ -10,6 +10,7 @@
 SHA1 (patch-ad) = f8c950cc4a0ffb5bdba315a298c14a3e7ebcd637
 SHA1 (patch-ae) = b67fde4062691b2d953cb4cb5b4ebd2428c3c285
 SHA1 (patch-af) = 1e0db04b5b85ad3b71066e55f94bf3144d69efe5
+SHA1 (patch-jade_HtmlFOTBuilder.cxx) = 98643b1159b6f22ae8e77ac3e8c5f431c167ce83
 SHA1 (patch-jade_TeXFOTBuilder.cxx) = 037953d73d896afae7531e313821224ccd1e30e4
 SHA1 (patch-jade_TransformFOTBuilder.cxx) = cf4c51f05f95e31111a7e48d7984397ba4850e7d
 SHA1 (patch-msggen.pl) = d55befeb6f859c9c3330c2083fce5d5281a496ef
diff -r 9cf0c4be2ac7 -r d96937267bb1 textproc/openjade/patches/patch-jade_HtmlFOTBuilder.cxx
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/openjade/patches/patch-jade_HtmlFOTBuilder.cxx   Thu Mar 26 21:47:54 2020 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-jade_HtmlFOTBuilder.cxx,v 1.1 2020/03/26 21:47:54 rillig Exp $
+
+HtmlFOTBuilder.cxx: In member function 'void OpenJade_DSSSL::HtmlFOTBuilder::CharStyle::output(OpenSP::OutputCharStream&) const':
+HtmlFOTBuilder.cxx:493:59: error: array subscript has type 'char' [-Werror=char-subscripts]
+     os << indent << "font-style: " << styleNames[fontStyle] << ';' << RE;
+                                                           ^
+HtmlFOTBuilder.cxx: In member function 'void OpenJade_DSSSL::HtmlFOTBuilder::ParaStyle::output(OpenSP::OutputCharStream&) const':
+HtmlFOTBuilder.cxx:537:55: error: array subscript has type 'char' [-Werror=char-subscripts]
+     os << indent << "text-align: " << alignNames[align] << ';' << RE;
+                                                       ^
+
+These char variables correspond to the enums that are declared just above of them.
+
+--- jade/HtmlFOTBuilder.cxx.orig       1999-05-02 15:47:07.000000000 +0000
++++ jade/HtmlFOTBuilder.cxx
+@@ -55,7 +55,7 @@ public:
+     bool operator!=(const CharProps &cp) const { return !(*this == cp); }
+     char fontWeight;
+     enum { styleNormal, styleItalic, styleOblique };
+-    char fontStyle;
++    unsigned char fontStyle;
+     unsigned color;
+     Length fontSize;
+     StringC fontFamily;
+@@ -72,7 +72,7 @@ public:
+     Length rightMargin;
+     Length lineHeight;
+     Length textIndent;
+-    char align;
++    unsigned char align;
+   };
+   struct ParaProps : public InheritParaProps {
+     ParaProps(const InheritParaProps &props)



Home | Main Index | Thread Index | Old Index