Petsc/main compilation issues a lot of warnings from PetscSpacePolynomialGetSymmetric
Hi,
this morning we got a lot of warnings from a function we don't use, just by including petsc.h
in our code:
In file included from /opt/petsc-main_debug/include/petscdmda.h:8,
from /opt/petsc-main_debug/include/petsc.h:14,
from /pmi/cmpbib/compilation_BIB_gcc_redhat_petsc-master_debug/COMPILE_AUTO/GIREF/src/commun/MVGlobal/DDLsNumerotation.h:73,
from /pmi/cmpbib/compilation_BIB_gcc_redhat_petsc-master_debug/COMPILE_AUTO/GIREF/src/commun/Champs/ChampAnalytiqueBase.icc:34,
...
/opt/petsc-main_debug/include/petscfe.h: In function ‘PetscErrorCode PetscSpacePolynomialGetSymmetric(PetscSpace, PetscBool*)’:
/opt/petsc-main_debug/include/petscfe.h:77:141: warning: unused parameter ‘sp’ [-Wunused-parameter]
77 | PETSC_STATIC_INLINE PETSC_DEPRECATED_FUNCTION("Property not used (since v3.17)") PetscErrorCode PetscSpacePolynomialGetSymmetric(PetscSpace sp, PetscBool *s) {*s = PETSC_FALSE; return 0;}
|
Looks that this is from commit f1436e55.
@tisaac is there a prescribed way to declare unused parameters?
Thanks,
Eric