nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1From 580bd3f0fea7ddc913329537070ab08fd3bf6033 Mon Sep 17 00:00:00 2001
2From: matthiasdotsh <git@matthias.sh>
3Date: Mon, 26 May 2025 11:22:01 +0200
4Subject: [PATCH] Fix build for gcc >=14
5
6---
7 src/include/fst/fst.h | 4 ++--
8 1 file changed, 2 insertions(+), 2 deletions(-)
9
10diff --git a/src/include/fst/fst.h b/src/include/fst/fst.h
11index 20e6bb3..2cb1364 100644
12--- a/src/include/fst/fst.h
13+++ b/src/include/fst/fst.h
14@@ -652,8 +652,8 @@ class FstImpl {
15 FstImpl &operator=(const FstImpl<Arc> &impl) {
16 properties_ = impl.properties_;
17 type_ = impl.type_;
18- isymbols_ = impl.isymbols_ ? impl.isymbols_->Copy() : nullptr;
19- osymbols_ = impl.osymbols_ ? impl.osymbols_->Copy() : nullptr;
20+ isymbols_ = impl.isymbols_ ? std::unique_ptr<fst::SymbolTable>(impl.isymbols_->Copy()) : nullptr;
21+ osymbols_ = impl.osymbols_ ? std::unique_ptr<fst::SymbolTable>(impl.osymbols_->Copy()) : nullptr;
22 return *this;
23 }
24