nixpkgs/pkgs/applications/science/machine-learning/shogun/fix-virtual-destruction.patch
Sebastián Mancilla 5873454b52 shogun: fix compiler warnings
Fix warnings related to virtual destruction. Kinda important to fix.
2023-05-21 22:34:01 -04:00

21 lines
516 B
Diff

From: Sebastián Mancilla <smancill@smancill.dev>
Subject: Fix virtual destruction
---
src/shogun/solver/LDASolver.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/shogun/solver/LDASolver.h b/src/shogun/solver/LDASolver.h
index 9300a85c5..d500eca5d 100644
--- a/src/shogun/solver/LDASolver.h
+++ b/src/shogun/solver/LDASolver.h
@@ -87,7 +87,7 @@ namespace shogun
compute_within_cov();
}
- ~LDASolver()
+ virtual ~LDASolver()
{
SG_UNREF(m_features)
SG_UNREF(m_labels)