ghex-org / GHEX

Generic exascale-ready library for halo-exchange operations on variety of grids/meshes
Other
8 stars 14 forks source link

GCC 9 Warning #13

Closed mbianco closed 4 years ago

mbianco commented 5 years ago

With GCC 9.1.0 there is a warning that I was not able to remove:

/Users/mbianco/Work/GHEX/benchmarks/gcl_test_halo_exchange_3D_generic_full.cpp:202:35: error: implicitly-declared 'constexpr triple_t<false, int>& triple_t<false, int>::operator=(const triple_t<false, int>&)' is deprecated [-Werror=deprecated-copy]
  202 |                     a(ii, jj, kk) = triple_t<USE_DOUBLE, T1>();
      |                     ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.

Now CMakeLists.txt explicitly says

 -Wno-deprecated-copy

as an option to the compiler. It looks like it is a problem with the compiler and it was patched. I'll check with newer versions and see if the problem disappear.