diff options
author | rillig <rillig@pkgsrc.org> | 2020-03-26 21:47:54 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2020-03-26 21:47:54 +0000 |
commit | 9dff402c65a20954afab41e9a26f74dc346bea2c (patch) | |
tree | af150cf743548f9b7e3a9bec1ce82ef92e90ca5a /textproc/openjade/patches | |
parent | e8c94dca66cf0b1734431fba929878b1b32be5f5 (diff) | |
download | pkgsrc-9dff402c65a20954afab41e9a26f74dc346bea2c.tar.gz |
textproc/openjade: fix -Wchar-subscripts
Diffstat (limited to 'textproc/openjade/patches')
-rw-r--r-- | textproc/openjade/patches/patch-jade_HtmlFOTBuilder.cxx | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/textproc/openjade/patches/patch-jade_HtmlFOTBuilder.cxx b/textproc/openjade/patches/patch-jade_HtmlFOTBuilder.cxx new file mode 100644 index 00000000000..606fc75746e --- /dev/null +++ b/textproc/openjade/patches/patch-jade_HtmlFOTBuilder.cxx @@ -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) |