diff --git a/src/d_clisrv.c b/src/d_clisrv.c
index 7f417b595111a90733f577c2918cdf69ef1d1170..f5fea366fe73cc0d0c80004429cbe370588fe8c2 100644
--- a/src/d_clisrv.c
+++ b/src/d_clisrv.c
@@ -3945,7 +3945,9 @@ static void HandlePacketFromPlayer(SINT8 node)
 	INT32 netconsole;
 	tic_t realend, realstart;
 	UINT8 *pak, *txtpak, numtxtpak;
+#ifndef NOMD5
 	UINT8 finalmd5[16];/* Well, it's the cool thing to do? */
+#endif
 
 	txtpak = NULL;
 
diff --git a/src/w_wad.c b/src/w_wad.c
index 8b3c21d28e42a090818c7a80118d66eb8a48e329..e96afd05004d90ce1be94d9e6bb4cdc2dabf283a 100644
--- a/src/w_wad.c
+++ b/src/w_wad.c
@@ -670,7 +670,9 @@ UINT16 W_InitFile(const char *filename, boolean mainfile, boolean startup)
 	wadfile_t *wadfile;
 	restype_t type;
 	UINT16 numlumps = 0;
+#ifndef NOMD5
 	size_t i;
+#endif
 	size_t packetsize;
 	UINT8 md5sum[16];
 	boolean important;