Skip to content

Build error for "unused" lightcone function

I am getting this error when building SWIFT with both GCC and ICC:

lightcone/projected_kernel.c(47): error #177: function "projected_kernel_integrand" was declared but never referenced
  static double projected_kernel_integrand(double qz, void *param) {
                ^

The problem arises because the function is passed as a function pointer to GSL:

gsl_function F = {&projected_kernel_integrand, &qxy};

Removing static fixes this issue.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information