sasagawa888 / eisl

ISLisp interpreter/compiler
Other
267 stars 22 forks source link

error: incompatible function pointer types passing 'void (int, int)' to parameter of type 'fn2' (aka 'int (*)(int, int)') #291

Closed yurivict closed 1 year ago

yurivict commented 1 year ago

clang-16 fails to compile eisl:

link.c:157:28: error: incompatible function pointer types passing 'void (int, int)' to parameter of type 'fn2' (aka 'int (*)(int, int)') [-Wincompatible-function-pointer-types]
    init_f2(SETDYNENV_IDX, set_dyn_env);
                           ^~~~~~~~~~~
link.c:158:28: error: incompatible function pointer types passing 'void (int, int)' to parameter of type 'fn2' (aka 'int (*)(int, int)') [-Wincompatible-function-pointer-types]
    init_f2(ADDDYNENV_IDX, add_dyn_env);
                           ^~~~~~~~~~~
2 errors generated.

I think that these were warnings in clang-15, but clang-16 became more strict.

Could you please make sure all errors and warnings that are printed by clang-16 are fixed?

Thank you, Yuri

sasagawa888 commented 1 year ago

It is now removed. Thank you.