mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 17:46:38 -04:00
Clang 19 has become more strict about errors in member functions, which results in errors building math/linbox: ../../linbox/vector/blas-subvector.h:121:20: error: no member named 'data' in 'BlasSubvector<_Vector>' 121 | _ptr(V.data()+beg), _size(dim), _inc(inc), _field(&V.field()) {} | ~ ^ ../../linbox/matrix/sparsematrix/sparse-ell-matrix.h:1216:16: error: cannot assign to non-static data member '_ld' with const-qualified type 'const size_t &' (aka 'const unsigned long &') 1216 | _ld = iter._ld ; | ~~~ ^ ../../linbox/matrix/sparsematrix/sparse-ellr-matrix.h:1108:12: error: no viable overloaded '=' 1108 | _rowid = iter._rowid; | ~~~~~~ ^ ~~~~~~~~~~~ In all these cases, the methods where the errors occur are not actually used, so until upstream sorts out their incorrect code, stub them out using #if 0/#endif pairs. PR: 284159 Approved by: thierry (maintainer) MFH: 2025Q1
34 lines
730 B
C
34 lines
730 B
C
--- linbox/matrix/sparsematrix/sparse-ellr-matrix.h.orig 2021-12-14 10:16:03 UTC
|
|
+++ linbox/matrix/sparsematrix/sparse-ellr-matrix.h
|
|
@@ -1099,6 +1099,7 @@ namespace LinBox
|
|
|
|
{}
|
|
|
|
+#if 0
|
|
_Iterator &operator = (const _Iterator &iter)
|
|
{
|
|
_data_it = iter._data_it ;
|
|
@@ -1111,6 +1112,7 @@ namespace LinBox
|
|
|
|
return *this;
|
|
}
|
|
+#endif
|
|
|
|
bool operator == (const _Iterator &i) const
|
|
{
|
|
@@ -1246,6 +1248,7 @@ namespace LinBox
|
|
, _row(iter._row)
|
|
{}
|
|
|
|
+#if 0
|
|
_IndexedIterator &operator = (const _IndexedIterator &iter)
|
|
{
|
|
_rowid_it = iter._rowid_it ;
|
|
@@ -1260,6 +1263,7 @@ namespace LinBox
|
|
|
|
return *this;
|
|
}
|
|
+#endif
|
|
|
|
bool operator == (const _IndexedIterator &i) const
|
|
{
|