Fix compiler warning for GCC 14
What has been done:
- The new
invert_packed_anti_indexroutine gives aWarning: '*p_9(D)' may be used uninitialized [-Wmaybe-uninitialized]warning for gcc-14 compilers (Compiler explorer). This seems to be a correct warning as ifdim_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 -rcheckflag enabled insetup.py -
All tests pass -fbatchflag enabled insetup.py
-
- Versioning
-
Changelog.mdis up to date -
If merge into master: The patch number in parameters.F90andchangelog.mdis up to date
-
- Website (Needs to be done before merge)
-
Updates (if any) to the website have been added
-
- Compliance with style guide