diff options
author | Matteo Bernardini | 2019-08-18 16:29:50 +0200 |
---|---|---|
committer | Matteo Bernardini | 2019-08-18 16:29:50 +0200 |
commit | e81a89f1b6ccd3da8cffc51b431e0026126e34b9 (patch) | |
tree | d58abd1dad22c526d4bebefe25d34800370d6392 /misc/zinnia/zinnia-fixes-gcc6-compile.patch | |
parent | d04189e642ca17186cb9b2b5899fa9c12aceb782 (diff) | |
download | slackbuilds-5f2831c3d36a91082430233bca817afd27cec528.tar.gz |
20190818.2 global branch merge.current-20190818.2
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'misc/zinnia/zinnia-fixes-gcc6-compile.patch')
-rw-r--r-- | misc/zinnia/zinnia-fixes-gcc6-compile.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/misc/zinnia/zinnia-fixes-gcc6-compile.patch b/misc/zinnia/zinnia-fixes-gcc6-compile.patch new file mode 100644 index 0000000000..848f306edb --- /dev/null +++ b/misc/zinnia/zinnia-fixes-gcc6-compile.patch @@ -0,0 +1,22 @@ +Index: zinnia-0.06/trainer.cpp +=================================================================== +--- zinnia-0.06.orig/trainer.cpp ++++ zinnia-0.06/trainer.cpp +@@ -93,7 +93,7 @@ class TrainerImpl: public Trainer { + + public: + bool add(const Character &character) { +- const std::string y = character.value(); ++ std::string y = character.value(); + CHECK_FALSE(!y.empty()) << "input character is empty"; + Features features; + CHECK_FALSE(features.read(character)) << "cannot read character: " << y; +@@ -103,7 +103,7 @@ class TrainerImpl: public Trainer { + if (!fn) { + return false; + } +- x_.push_back(std::make_pair<std::string, FeatureNode *>(y, fn)); ++ x_.push_back(std::make_pair(y, fn)); + return true; + } + |