jeromerobert / hmat-oss

A hierarchical matrix C/C++ library
GNU General Public License v2.0
22 stars 11 forks source link

rk_matrix: fix gcc12 error #80

Closed jschueller closed 2 years ago

jschueller commented 2 years ago
src/rk_matrix.cpp:992:15: error: comparing the result of pointer addition ‘(a1 + ((sizetype)(b2->hmat::ScalarArray<float>::memorySize() * 40)))’ and NULL [-Werror=address]
  992 |            a1 == NULL ? 0 : a1->rows * r2->rank() * sizeof(T);
dbarbier commented 2 years ago

Hi @jschueller this function can be removed, it is no more used since 2015. Do you want to update your PR? Otherwise I can do this change.

jschueller commented 2 years ago

Hi Denis, ok I removed it