FreeBSD Bugzilla – Attachment 255283 Details for
Bug 282851
math/gfan: fix build with clang 19
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
math/gfan: fix build with clang 19
math__gfan-fix-clang19-build-1.diff (text/plain), 1.53 KB, created by
Dimitry Andric
on 2024-11-18 17:12:50 UTC
(
hide
)
Description:
math/gfan: fix build with clang 19
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2024-11-18 17:12:50 UTC
Size:
1.53 KB
patch
obsolete
>commit a70b93d7abc95cc3a9ea18171d1f0db1c7357323 >Author: Dimitry Andric <dim@FreeBSD.org> >Date: 2024-11-18T13:43:25+01:00 > > math/gfan: fix build with clang 19 > > Clang 19 has become more strict about errors in member functions, which > results in errors building math/gfan: > > src/gfanlib_matrix.h:123:18: error: no member named 'vectormultiply' in 'Matrix<typ>' > 123 | ret[i]=a.vectormultiply(b.column(i)); > | ~ ^ > > The `vectormultiply` method has been commented out by upstream for > unknown reasons, but the `operator*` method that references it is also > never used, so stub it out. > > PR: 282851 > MFH: 2024Q4 > >diff --git a/math/gfan/files/patch-src_gfanlib__matrix.h b/math/gfan/files/patch-src_gfanlib__matrix.h >new file mode 100644 >index 000000000000..68aa9e1afa0c >--- /dev/null >+++ b/math/gfan/files/patch-src_gfanlib__matrix.h >@@ -0,0 +1,18 @@ >+--- src/gfanlib_matrix.h.orig 2017-06-20 14:47:37 UTC >++++ src/gfanlib_matrix.h >+@@ -115,6 +115,7 @@ template <class typ> class Matrix{ (public) >+ p[i][j]=s*(q[i][j]); >+ return p; >+ } >++#if 0 >+ friend Matrix operator*(const Matrix& a, const Matrix& b) >+ { >+ assert(a.width==b.height); >+@@ -123,6 +124,7 @@ template <class typ> class Matrix{ (public) >+ ret[i]=a.vectormultiply(b.column(i)); >+ return ret.transposed(); >+ } >++#endif >+ /* template<class T> >+ Matrix<T>(const Matrix<T>& c):v(c.size()){ >+ for(int i=0;i<size();i++)v[i]=typ(c[i]);}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 282851
: 255283