gawk-haru 1.0.2 fails to build on macOS 26:
pdf.c:7068:22: error: incompatible function pointer types initializing 'awk_value_t *(*const)(int, awk_value_t *, struct awk_ext_func *)' (aka 'struct awk_value *(*const)(int, struct awk_value *, struct awk_ext_func *)') with an expression of type 'awk_value_t *(int, awk_value_t *)' (aka 'struct awk_value *(int, struct awk_value *)') [-Wincompatible-function-pointer-types]
7068 | {"HPDF_GetVersion", do_HPDF_GetVersion,0},
| ^~~~~~~~~~~~~~~~~~
pdf.c:7068:42: warning: missing field 'min_required_args' initializer [-Wmissing-field-initializers]
7068 | {"HPDF_GetVersion", do_HPDF_GetVersion,0},
| ^
pdf.c:7069:15: error: incompatible function pointer types initializing 'awk_value_t *(*const)(int, awk_value_t *, struct awk_ext_func *)' (aka 'struct awk_value *(*const)(int, struct awk_value *, struct awk_ext_func *)') with an expression of type 'awk_value_t *(int, awk_value_t *)' (aka 'struct awk_value *(int, struct awk_value *)') [-Wincompatible-function-pointer-types]
7069 | {"HPDF_New", do_HPDF_New,2},
| ^~~~~~~~~~~
pdf.c:7069:28: warning: missing field 'min_required_args' initializer [-Wmissing-field-initializers]
7069 | {"HPDF_New", do_HPDF_New,2},
| ^
pdf.c:7070:16: error: incompatible function pointer types initializing 'awk_value_t *(*const)(int, awk_value_t *, struct awk_ext_func *)' (aka 'struct awk_value *(*const)(int, struct awk_value *, struct awk_ext_func *)') with an expression of type 'awk_value_t *(int, awk_value_t *)' (aka 'struct awk_value *(int, struct awk_value *)') [-Wincompatible-function-pointer-types]
7070 | {"HPDF_Free", do_HPDF_Free,1},
| ^~~~~~~~~~~~
pdf.c:7070:30: warning: missing field 'min_required_args' initializer [-Wmissing-field-initializers]
7070 | {"HPDF_Free", do_HPDF_Free,1},
| ^
pdf.c:7071:18: error: incompatible function pointer types initializing 'awk_value_t *(*const)(int, awk_value_t *, struct awk_ext_func *)' (aka 'struct awk_value *(*const)(int, struct awk_value *, struct awk_ext_func *)') with an expression of type 'awk_value_t *(int, awk_value_t *)' (aka 'struct awk_value *(int, struct awk_value *)') [-Wincompatible-function-pointer-types]
7071 | {"HPDF_NewDoc", do_HPDF_NewDoc,1},
| ^~~~~~~~~~~~~~
pdf.c:7071:34: warning: missing field 'min_required_args' initializer [-Wmissing-field-initializers]
7071 | {"HPDF_NewDoc", do_HPDF_NewDoc,1},
| ^
pdf.c:7072:19: error: incompatible function pointer types initializing 'awk_value_t *(*const)(int, awk_value_t *, struct awk_ext_func *)' (aka 'struct awk_value *(*const)(int, struct awk_value *, struct awk_ext_func *)') with an expression of type 'awk_value_t *(int, awk_value_t *)' (aka 'struct awk_value *(int, struct awk_value *)') [-Wincompatible-function-pointer-types]
7072 | {"HPDF_FreeDoc", do_HPDF_FreeDoc,1},
| ^~~~~~~~~~~~~~~
pdf.c:7072:36: warning: missing field 'min_required_args' initializer [-Wmissing-field-initializers]
7072 | {"HPDF_FreeDoc", do_HPDF_FreeDoc,1},
| ^
pdf.c:7073:18: error: incompatible function pointer types initializing 'awk_value_t *(*const)(int, awk_value_t *, struct awk_ext_func *)' (aka 'struct awk_value *(*const)(int, struct awk_value *, struct awk_ext_func *)') with an expression of type 'awk_value_t *(int, awk_value_t *)' (aka 'struct awk_value *(int, struct awk_value *)') [-Wincompatible-function-pointer-types]
7073 | {"HPDF_HasDoc", do_HPDF_HasDoc,1},
| ^~~~~~~~~~~~~~
pdf.c:7073:34: warning: missing field 'min_required_args' initializer [-Wmissing-field-initializers]
7073 | {"HPDF_HasDoc", do_HPDF_HasDoc,1},
| ^
pdf.c:7074:22: error: incompatible function pointer types initializing 'awk_value_t *(*const)(int, awk_value_t *, struct awk_ext_func *)' (aka 'struct awk_value *(*const)(int, struct awk_value *, struct awk_ext_func *)') with an expression of type 'awk_value_t *(int, awk_value_t *)' (aka 'struct awk_value *(int, struct awk_value *)') [-Wincompatible-function-pointer-types]
7074 | {"HPDF_FreeDocAll", do_HPDF_FreeDocAll,1},
| ^~~~~~~~~~~~~~~~~~
pdf.c:7074:42: warning: missing field 'min_required_args' initializer [-Wmissing-field-initializers]
7074 | {"HPDF_FreeDocAll", do_HPDF_FreeDocAll,1},
| ^
pdf.c:7075:23: error: incompatible function pointer types initializing 'awk_value_t *(*const)(int, awk_value_t *, struct awk_ext_func *)' (aka 'struct awk_value *(*const)(int, struct awk_value *, struct awk_ext_func *)') with an expression of type 'awk_value_t *(int, awk_value_t *)' (aka 'struct awk_value *(int, struct awk_value *)') [-Wincompatible-function-pointer-types]
7075 | {"HPDF_GetContents", do_HPDF_GetContents,3},
| ^~~~~~~~~~~~~~~~~~~
pdf.c:7075:44: warning: missing field 'min_required_args' initializer [-Wmissing-field-initializers]
7075 | {"HPDF_GetContents", do_HPDF_GetContents,3},
| ^
pdf.c:7076:22: error: incompatible function pointer types initializing 'awk_value_t *(*const)(int, awk_value_t *, struct awk_ext_func *)' (aka 'struct awk_value *(*const)(int, struct awk_value *, struct awk_ext_func *)') with an expression of type 'awk_value_t *(int, awk_value_t *)' (aka 'struct awk_value *(int, struct awk_value *)') [-Wincompatible-function-pointer-types]
7076 | {"HPDF_SaveToFile", do_HPDF_SaveToFile,2},
| ^~~~~~~~~~~~~~~~~~
pdf.c:7076:42: warning: missing field 'min_required_args' initializer [-Wmissing-field-initializers]
7076 | {"HPDF_SaveToFile", do_HPDF_SaveToFile,2},
| ^
pdf.c:7077:20: error: incompatible function pointer types initializing 'awk_value_t *(*const)(int, awk_value_t *, struct awk_ext_func *)' (aka 'struct awk_value *(*const)(int, struct awk_value *, struct awk_ext_func *)') with an expression of type 'awk_value_t *(int, awk_value_t *)' (aka 'struct awk_value *(int, struct awk_value *)') [-Wincompatible-function-pointer-types]
7077 | {"HPDF_GetError", do_HPDF_GetError,1},
| ^~~~~~~~~~~~~~~~
pdf.c:7077:38: warning: missing field 'min_required_args' initializer [-Wmissing-field-initializers]
7077 | {"HPDF_GetError", do_HPDF_GetError,1},
| ^
pdf.c:7078:26: error: incompatible function pointer types initializing 'awk_value_t *(*const)(int, awk_value_t *, struct awk_ext_func *)' (aka 'struct awk_value *(*const)(int, struct awk_value *, struct awk_ext_func *)') with an expression of type 'awk_value_t *(int, awk_value_t *)' (aka 'struct awk_value *(int, struct awk_value *)') [-Wincompatible-function-pointer-types]
7078 | {"HPDF_GetErrorDetail", do_HPDF_GetErrorDetail,1},
| ^~~~~~~~~~~~~~~~~~~~~~
pdf.c:7078:50: warning: missing field 'min_required_args' initializer [-Wmissing-field-initializers]
7078 | {"HPDF_GetErrorDetail", do_HPDF_GetErrorDetail,1},
| ^
pdf.c:7079:22: error: incompatible function pointer types initializing 'awk_value_t *(*const)(int, awk_value_t *, struct awk_ext_func *)' (aka 'struct awk_value *(*const)(int, struct awk_value *, struct awk_ext_func *)') with an expression of type 'awk_value_t *(int, awk_value_t *)' (aka 'struct awk_value *(int, struct awk_value *)') [-Wincompatible-function-pointer-types]
7079 | {"HPDF_ResetError", do_HPDF_ResetError,1},
| ^~~~~~~~~~~~~~~~~~
pdf.c:7079:42: warning: missing field 'min_required_args' initializer [-Wmissing-field-initializers]
7079 | {"HPDF_ResetError", do_HPDF_ResetError,1},
| ^
pdf.c:7080:22: error: incompatible function pointer types initializing 'awk_value_t *(*const)(int, awk_value_t *, struct awk_ext_func *)' (aka 'struct awk_value *(*const)(int, struct awk_value *, struct awk_ext_func *)') with an expression of type 'awk_value_t *(int, awk_value_t *)' (aka 'struct awk_value *(int, struct awk_value *)') [-Wincompatible-function-pointer-types]
7080 | {"HPDF_CheckError", do_HPDF_CheckError,1},
| ^~~~~~~~~~~~~~~~~~
pdf.c:7080:42: warning: missing field 'min_required_args' initializer [-Wmissing-field-initializers]
7080 | {"HPDF_CheckError", do_HPDF_CheckError,1},
| ^
pdf.c:7081:33: error: incompatible function pointer types initializing 'awk_value_t *(*const)(int, awk_value_t *, struct awk_ext_func *)' (aka 'struct awk_value *(*const)(int, struct awk_value *, struct awk_ext_func *)') with an expression of type 'awk_value_t *(int, awk_value_t *)' (aka 'struct awk_value *(int, struct awk_value *)') [-Wincompatible-function-pointer-types]
7081 | {"HPDF_SetPagesConfiguration", do_HPDF_SetPagesConfiguration,2},
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pdf.c:7081:64: warning: missing field 'min_required_args' initializer [-Wmissing-field-initializers]
7081 | {"HPDF_SetPagesConfiguration", do_HPDF_SetPagesConfiguration,2},
| ^
pdf.c:7082:26: error: incompatible function pointer types initializing 'awk_value_t *(*const)(int, awk_value_t *, struct awk_ext_func *)' (aka 'struct awk_value *(*const)(int, struct awk_value *, struct awk_ext_func *)') with an expression of type 'awk_value_t *(int, awk_value_t *)' (aka 'struct awk_value *(int, struct awk_value *)') [-Wincompatible-function-pointer-types]
7082 | {"HPDF_GetPageByIndex", do_HPDF_GetPageByIndex,2},
| ^~~~~~~~~~~~~~~~~~~~~~
pdf.c:7082:50: warning: missing field 'min_required_args' initializer [-Wmissing-field-initializers]
7082 | {"HPDF_GetPageByIndex", do_HPDF_GetPageByIndex,2},
| ^
pdf.c:7083:25: error: incompatible function pointer types initializing 'awk_value_t *(*const)(int, awk_value_t *, struct awk_ext_func *)' (aka 'struct awk_value *(*const)(int, struct awk_value *, struct awk_ext_func *)') with an expression of type 'awk_value_t *(int, awk_value_t *)' (aka 'struct awk_value *(int, struct awk_value *)') [-Wincompatible-function-pointer-types]
7083 | {"HPDF_GetPageLayout", do_HPDF_GetPageLayout,1},
| ^~~~~~~~~~~~~~~~~~~~~
pdf.c:7083:48: warning: missing field 'min_required_args' initializer [-Wmissing-field-initializers]
7083 | {"HPDF_GetPageLayout", do_HPDF_GetPageLayout,1},
| ^
pdf.c:7084:25: error: incompatible function pointer types initializing 'awk_value_t *(*const)(int, awk_value_t *, struct awk_ext_func *)' (aka 'struct awk_value *(*const)(int, struct awk_value *, struct awk_ext_func *)') with an expression of type 'awk_value_t *(int, awk_value_t *)' (aka 'struct awk_value *(int, struct awk_value *)') [-Wincompatible-function-pointer-types]
7084 | {"HPDF_SetPageLayout", do_HPDF_SetPageLayout,2},
| ^~~~~~~~~~~~~~~~~~~~~
pdf.c:7084:48: warning: missing field 'min_required_args' initializer [-Wmissing-field-initializers]
7084 | {"HPDF_SetPageLayout", do_HPDF_SetPageLayout,2},
| ^
pdf.c:7085:23: error: incompatible function pointer types initializing 'awk_value_t *(*const)(int, awk_value_t *, struct awk_ext_func *)' (aka 'struct awk_value *(*const)(int, struct awk_value *, struct awk_ext_func *)') with an expression of type 'awk_value_t *(int, awk_value_t *)' (aka 'struct awk_value *(int, struct awk_value *)') [-Wincompatible-function-pointer-types]
7085 | {"HPDF_GetPageMode", do_HPDF_GetPageMode,1},
| ^~~~~~~~~~~~~~~~~~~
pdf.c:7085:44: warning: missing field 'min_required_args' initializer [-Wmissing-field-initializers]
7085 | {"HPDF_GetPageMode", do_HPDF_GetPageMode,1},
| ^
pdf.c:7086:23: error: incompatible function pointer types initializing 'awk_value_t *(*const)(int, awk_value_t *, struct awk_ext_func *)' (aka 'struct awk_value *(*const)(int, struct awk_value *, struct awk_ext_func *)') with an expression of type 'awk_value_t *(int, awk_value_t *)' (aka 'struct awk_value *(int, struct awk_value *)') [-Wincompatible-function-pointer-types]
7086 | {"HPDF_SetPageMode", do_HPDF_SetPageMode,2},
| ^~~~~~~~~~~~~~~~~~~
pdf.c:7086:44: warning: missing field 'min_required_args' initializer [-Wmissing-field-initializers]
7086 | {"HPDF_SetPageMode", do_HPDF_SetPageMode,2},
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
29 warnings and 20 errors generated.
Build log