diff --git a/cryptoapi.c b/cryptoapi.c index 8fb53871..3365cd7a 100644 --- a/cryptoapi.c +++ b/cryptoapi.c @@ -470,5 +470,7 @@ int SSL_CTX_use_CryptoAPI_certificate(SSL_CTX *ssl_ctx, const char *cert_prop) } #else +#ifdef _MSC_VER /* Dummy function needed to avoid empty file compiler warning in Microsoft VC */ static void dummy (void) {} +#endif #endif /* WIN32 */ diff --git a/ieproxy.c b/ieproxy.c index 89977a82..30998704 100644 --- a/ieproxy.c +++ b/ieproxy.c @@ -139,7 +139,8 @@ LPCTSTR getIeHttpProxy() return(NULL); } } - #else +#ifdef _MSC_VER /* Dummy function needed to avoid empty file compiler warning in Microsoft VC */ static void dummy (void) {} +#endif #endif /* WIN32 */ diff --git a/perf.c b/perf.c index a149c07d..67ea9580 100644 --- a/perf.c +++ b/perf.c @@ -287,5 +287,7 @@ perf_print_state (int lev) } #else +#ifdef _MSC_VER /* Dummy function needed to avoid empty file compiler warning in Microsoft VC */ static void dummy(void) {} #endif +#endif diff --git a/pkcs11.c b/pkcs11.c index e06a2ed7..d90ac968 100644 --- a/pkcs11.c +++ b/pkcs11.c @@ -982,5 +982,7 @@ cleanup: } #else +#ifdef _MSC_VER /* Dummy function needed to avoid empty file compiler warning in Microsoft VC */ static void dummy (void) {} +#endif #endif /* ENABLE_PKCS11 */