diff --git a/lib/memdebug.c b/lib/memdebug.c index d03faf32a..1eeb5c93e 100644 --- a/lib/memdebug.c +++ b/lib/memdebug.c @@ -255,5 +255,8 @@ int curl_fclose(FILE *file, int line, const char *source) #else #ifdef VMS int VOID_VAR_MEMDEBUG; -#endif +#else +/* we provide a fake do-nothing function here to avoid compiler warnings */ +void curl_memdebug(void) {} +#endif /* VMS */ #endif /* CURLDEBUG */