You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wrapper.cpp:85:27: warning: cast between incompatible functiontypes from 'FARPROC' {aka 'long long int (*)()'} to 'init_embedder_local_func' {aka 'llama_embedder* (*)(const char*, unsigned int)'} [-Wcast-function-type]
85 | init_embedder_f = (init_embedder_local_func) GetProcAddress(libh, "init_embedder");| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
wrapper.cpp:99:27: warning: cast between incompatible functiontypes from 'FARPROC' {aka 'long long int (*)()'} to 'free_embedder_local_func' {aka 'void (*)(llama_embedder*)'} [-Wcast-function-type]
99 | free_embedder_f = (free_embedder_local_func) GetProcAddress(libh, "free_embedder");| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
wrapper.cpp:113:19: warning: cast between incompatible functiontypes from 'FARPROC' {aka 'long long int (*)()'} to 'embed_c_local_func' {aka 'FloatMatrix (*)(llama_embedder*, const char**, long long unsigned int, int)'} [-Wcast-function-type]
113 | embed_f = (embed_c_local_func) GetProcAddress(libh, "embed_c");| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
wrapper.cpp:127:26: warning: cast between incompatible functiontypes from 'FARPROC' {aka 'long long int (*)()'} to 'get_metadata_c_local_func' {aka 'int (*)(llama_embedder*, MetadataPair**, long long unsigned int*)'} [-Wcast-function-type]
127 | get_metadata_f = (get_metadata_c_local_func) GetProcAddress(libh, "get_metadata_c");| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
wrapper.cpp:142:27: warning: cast between incompatible functiontypes from 'FARPROC' {aka 'long long int (*)()'} to 'free_metadata_c_local_func' {aka 'void (*)(MetadataPair*, long long unsigned int)'} [-Wcast-function-type]
142 | free_metadata_f = (free_metadata_c_local_func) GetProcAddress(libh, "free_metadata_c");| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The following warnings are visibile in logs:
should be fixed with something like:
The text was updated successfully, but these errors were encountered: