diff --git a/src/d_clisrv.c b/src/d_clisrv.c
index 7516df2e0c3438b273a2834ebbdfb6723a57b49f..e50b1d9dee5fbcbfc2ecd38e8f52663717c40f88 100644
--- a/src/d_clisrv.c
+++ b/src/d_clisrv.c
@@ -2542,6 +2542,8 @@ static void CL_RemovePlayer(INT32 playernum, INT32 reason)
 
 #ifdef HAVE_BLUA
 	LUAh_PlayerQuit(&players[playernum], reason); // Lua hook for player quitting
+#else
+	(void)reason;
 #endif
 
 	// Reset player data
diff --git a/src/dehacked.c b/src/dehacked.c
index 11aed24d043415d019bb048bd0be0e2d29c11a3a..f659973895495f26c0ea11d19ca24cc395d166a5 100644
--- a/src/dehacked.c
+++ b/src/dehacked.c
@@ -8254,6 +8254,7 @@ static const char *const POWERS_LIST[] = {
 	"INGOOP" // In goop
 };
 
+#ifdef HAVE_BLUA
 static const char *const KARTSTUFF_LIST[] = {
 	"POSITION",
 	"OLDPOSITION",
@@ -8337,6 +8338,7 @@ static const char *const KARTSTUFF_LIST[] = {
 	"JAWZTARGETDELAY",
 	"SPECTATEWAIT"
 };
+#endif
 
 static const char *const HUDITEMS_LIST[] = {
 	"LIVESNAME",
@@ -9042,20 +9044,6 @@ static powertype_t get_power(const char *word)
 	return pw_invulnerability;
 }
 
-static kartstufftype_t get_kartstuff(const char *word)
-{ // Returns the vlaue of k_ enumerations
-	kartstufftype_t i;
-	if (*word >= '0' && *word <= '9')
-		return atoi(word);
-	if (fastncmp("K_",word,2))
-		word += 2; // take off the k_
-	for (i = 0; i < NUMKARTSTUFF; i++)
-		if (fastcmp(word, KARTSTUFF_LIST[i]))
-			return i;
-	deh_warning("Couldn't find power named 'k_%s'",word);
-	return k_position;
-}
-
 /// \todo Make ANY of this completely over-the-top math craziness obey the order of operations.
 static fixed_t op_mul(fixed_t a, fixed_t b) { return a*b; }
 static fixed_t op_div(fixed_t a, fixed_t b) { return a/b; }