/* code from a native port: */
/* Definition of an arbitrary function with parameters */
struct gsl_function_struct
{
double (* function) (double x, void * params);
void * params;
};
typedef struct gsl_function_struct gsl_function ;
#define GSL_FN_EVAL(F,x) (*((F)->function))(x,(F)->params)
/* Declarations */
gsl_function weighted_function;
static double fn_cauchy (double x, void *params);
/* main (foo.c)*/
#include <u.h>
#include <libc.h>
/* line 55 :*/
weighted_function.function = &fn_cauchy;
weighted_function.params = &fn_params;
=====>
mk: warning: foo.c:55 qawo.c:39 address of array/func ignored
Q1: Why?
Q2: Reccommended workaround??
tx,
++pac.
--
Levnější internet v pracovní dny již od 18:00 hod.
Surfujte s VOLNÝ!
http://mimospicku.volny.cz