Some compilers warn on completely empty source files, we provide a blank
authorDaniel Stenberg <daniel@haxx.se>
Fri, 20 Feb 2004 16:22:47 +0000 (16:22 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 20 Feb 2004 16:22:47 +0000 (16:22 +0000)
one to prevent that.

lib/memdebug.c

index d03faf3..1eeb5c9 100644 (file)
@@ -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 */