Fix compiler warning for GCC 14

What has been done:

  • The new invert_packed_anti_index routine gives a Warning: '*p_9(D)' may be used uninitialized [-Wmaybe-uninitialized] warning for gcc-14 compilers (Compiler explorer). This seems to be a correct warning as if dim_ is 1 p and q will not be written to, and the p = p + 1 would be working with potentially uninitialized memory. Initializing them to 0 fixes the warning.

ToDo-list

The boxes below need to be checked before merge review will start

  • Testing
    • All tests pass -rcheck flag enabled in setup.py
    • All tests pass -fbatch flag enabled in setup.py
  • Versioning
    • Changelog.md is up to date
    • If merge into master: The patch number in parameters.F90 and changelog.md is up to date
  • Website (Needs to be done before merge)
    • Updates (if any) to the website have been added
  • Compliance with style guide

Merge request reports

Loading