aports/community/openfst/gcc14.patch

19 lines
878 B
Diff

Source: https://src.fedoraproject.org/rpms/openfst/c/2f26919897b1ab2bec7391d50477785acb3b6a7b
---
diff -u --recursive openfst-1.8.3-vanilla/src/include/fst/fst.h openfst-1.8.3/src/include/fst/fst.h
--- openfst-1.8.3-vanilla/src/include/fst/fst.h 2024-01-11 15:32:17.000000000 -0600
+++ openfst-1.8.3/src/include/fst/fst.h 2024-02-08 18:09:12.513678763 -0600
@@ -687,8 +687,10 @@
properties_.store(impl.properties_.load(std::memory_order_relaxed),
std::memory_order_relaxed);
type_ = impl.type_;
- isymbols_ = impl.isymbols_ ? impl.isymbols_->Copy() : nullptr;
- osymbols_ = impl.osymbols_ ? impl.osymbols_->Copy() : nullptr;
+ isymbols_ =
+ fst::WrapUnique(impl.isymbols_ ? impl.isymbols_->Copy() : nullptr);
+ osymbols_ =
+ fst::WrapUnique(impl.osymbols_ ? impl.osymbols_->Copy() : nullptr);
return *this;
}