| b13f2904 | 31-Jan-2023 |
Stefano Zampini <stefano.zampini@gmail.com> |
Fix warning
In file included from /home/zampins/Devel/petsc/include/petscsys.h:1176, from /home/zampins/Devel/petsc/include/petsc/private/petscimpl.h:7, from /home/
Fix warning
In file included from /home/zampins/Devel/petsc/include/petscsys.h:1176, from /home/zampins/Devel/petsc/include/petsc/private/petscimpl.h:7, from /home/zampins/Devel/petsc/src/sys/memory/mtr.c:5: /home/zampins/Devel/petsc/src/sys/memory/mtr.c: In function 'PetscMallocView': /home/zampins/Devel/petsc/src/sys/memory/mtr.c:912:13: warning: 'PetscSortStrWithPermutation' accessing 4 bytes in a region of size 0 [-Wstringop-overflow=] 912 | PetscCall(PetscSortStrWithPermutation(n, (const char **)shortfunction, perm)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/zampins/Devel/petsc/include/petscerror.h:439:17: note: in definition of macro 'PetscCall' 439 | ierr_q_ = __VA_ARGS__; \ | ^~~~~~~~~~~ /home/zampins/Devel/petsc/src/sys/memory/mtr.c:912:13: note: referencing argument 3 of type 'PetscInt *' {aka 'int *'} 912 | PetscCall(PetscSortStrWithPermutation(n, (const char **)shortfunction, perm)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/zampins/Devel/petsc/include/petscerror.h:439:17: note: in definition of macro 'PetscCall' 439 | ierr_q_ = __VA_ARGS__; \ | ^~~~~~~~~~~ In file included from /home/zampins/Devel/petsc/include/petsc/private/petscimpl.h:7, from /home/zampins/Devel/petsc/src/sys/memory/mtr.c:5: /home/zampins/Devel/petsc/include/petscsys.h:2346:29: note: in a call to function 'PetscSortStrWithPermutation' 2346 | PETSC_EXTERN PetscErrorCode PetscSortStrWithPermutation(PetscInt, const char *[], PetscInt[]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
show more ...
|