#2794: TACC Stampede3-skx Compilation Failing [-Wincompatible-function-pointer-type]
| Reporter: | vik@arizona.edu |
| Status: | new |
| Milestone: | ET_2023_05 |
| Version: | ET_2023_05 |
| Type: | bug |
| Priority: | minor |
| Component: | EinsteinToolkit thorn |
Comment (by Roland Haas):
these seem to differ only in the restrict keyword used by `ReflectionSymmetry`. The interface specification of the aliased function
CCTK_INT FUNCTION \
SymmetryRegisterGridInterpolator \
(CCTK_POINTER IN cctkGH, \
CCTK_INT IN sym_handle, \
CCTK_INT CCTK_FPOINTER IN symmetry_interpolate \
(CCTK_POINTER_TO_CONST IN cctkGH, \
CCTK_INT IN N_dims, \
CCTK_INT IN local_interp_handle, \
CCTK_INT IN param_table_handle, \
CCTK_INT IN coord_system_handle, \
CCTK_INT IN N_interp_points, \
CCTK_INT IN interp_coords_type, \
CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \
CCTK_INT IN N_input_arrays, \
CCTK_INT ARRAY IN input_array_indices, \
CCTK_INT IN N_output_arrays, \
CCTK_INT ARRAY IN output_array_types, \
CCTK_POINTER ARRAY IN output_arrays, \
CCTK_INT IN faces))
has no restrict in it (not sure if this can even be expressed in the CCL file).
So the function prototypes differ, though if that difference is something that the compiler may care about (since restrict is just a property of the function and does not affect externally visible behaviour) may be a different question.
Since this is just a warning, it should not actually stop the compilation th
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2794/tacc-stampede3-skx-compilation-failing