diff options
author | 2019-01-19 08:55:12 +0100 | |
---|---|---|
committer | 2019-01-19 08:55:12 +0100 | |
commit | 5f8399666eb4ad76f382517899bbf5ee0fad8a19 (patch) | |
tree | 56d6a93428b2b57ff16c985957dd5aa440902eb4 /misc/zinnia/zinnia-fixes-gcc6-compile.patch | |
parent | ddaeb7cce28e9a9eb05c4beb21b2f0438fc261f6 (diff) | |
download | slackbuilds-462ee892de415d2921cef41a4ead3277fc6294c7.tar.gz |
20190119.1 global branch merge.current-20190119.1
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; + } + |