On Wed, Apr 03, 2019 at 08:40:35PM +0000, Overbey, Patrick (Sioux Falls) wrote: > It looks the same to me. Thanks. > > In file included from src/connection.c:17: > src/connection.c: In function '__initcb_1302': > include/common/initcall.h:128:11: warning: cast between incompatible function > ty
At least the line has changed, indicating that the macro correctly made its way to the code. I need to scratch my head now. > pes from 'void (*)(struct sample_fetch_kw_list *)' to 'void (*)(void *, void > *, > void *)' [-Wcast-function-type] > .fct = (void (*)(void *,void *,void *))function, \ > ^ > include/common/initcall.h:146:2: note: in expansion of macro > '__DECLARE_INITCALL > ' > __DECLARE_INITCALL(__VA_ARGS__) > ^~~~~~~~~~~~~~~~~~ > include/common/initcall.h:158:2: note: in expansion of macro > '_DECLARE_INITCALL' > > _DECLARE_INITCALL(stage, __LINE__, function, arg1, 0, 0) > ^~~~~~~~~~~~~~~~~ > src/connection.c:1302:1: note: in expansion of macro 'INITCALL1' > INITCALL1(STG_REGISTER, sample_register_fetches, &sample_fetch_keywords); > ^~~~~~~~~ > gmake: *** [Makefile:996: src/connection.o] Error 1 Note, I'm only seeing a warning and not the error here. So I don't understand why the compilation stopped. And I don't understand why the warning above wasn't automatically disabled since the compiler supports it. Willy

