diff --git a/meson.build b/meson.build index 93b0eca..870240d 100644 --- a/meson.build +++ b/meson.build @@ -32,11 +32,6 @@ if meson.get_compiler('c').get_id() != 'msvc' '-static-libgcc', language: 'c', ) -else - add_project_arguments( - '/wd4090', # different 'const' qualifiers - language: 'c', - ) endif cc = meson.get_compiler('c') diff --git a/platform/cert.c b/platform/cert.c index d65b841..3a565e0 100644 --- a/platform/cert.c +++ b/platform/cert.c @@ -82,7 +82,7 @@ static void ca_error_cb(HINTERNET hInternet, DWORD_PTR dwContext, DWORD dwIntern static const struct hook_symbol cert_syms[] = { { .name = "CertFindCertificateInStore", - .patch = my_CertFindCertificateInStore, + .patch = (void *) my_CertFindCertificateInStore, .link = (void **) &next_CertFindCertificateInStore, }, { @@ -116,13 +116,13 @@ HRESULT cert_hook_init(const struct cert_config *cfg) proc_addr_table_push( NULL, "crypt32.dll", - (struct hook_symbol *) cert_syms, + cert_syms, _countof(cert_syms)); proc_addr_table_push( NULL, "Winhttp.dll", - (struct hook_symbol *) winhttp_syms, + winhttp_syms, _countof(winhttp_syms)); if (cfg->path[0] != L'\0') { @@ -196,7 +196,7 @@ void cert_hook_insert_hooks(HMODULE target) hook_table_apply( target, "winhttp.dll", - (struct hook_symbol *) winhttp_syms, + winhttp_syms, _countof(winhttp_syms)); }