From 7b143cc87b3652c08bd2d934214d77cfa9b20a8e Mon Sep 17 00:00:00 2001 From: pastel Date: Tue, 15 Oct 2024 13:09:34 -0500 Subject: [PATCH] Disinclude unused function when NOMD5 --- src/w_wad.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/w_wad.c b/src/w_wad.c index 4a1d44548..6964f24aa 100644 --- a/src/w_wad.c +++ b/src/w_wad.c @@ -307,12 +307,10 @@ static void W_LoadDehackedLumps(UINT16 wadnum, boolean mainfile) * \param resblock resulting MD5 checksum * \return 0 if MD5 checksum was made, and is at resblock, 1 if error was found */ + +#ifndef NOMD5 static INT32 W_MakeFileMD5(const char *filename, void *resblock) { -#ifdef NOMD5 - (void)filename; - memset(resblock, 0x00, 16); -#else FILE *fhandle; if ((fhandle = fopen(filename, "rb")) != NULL) @@ -329,9 +327,9 @@ static INT32 W_MakeFileMD5(const char *filename, void *resblock) fclose(fhandle); return 0; } -#endif return 1; } +#endif // Invalidates the cache of lump numbers. Call this whenever a wad is added. static void W_InvalidateLumpnumCache(void)