[openjk] 90/130: Suppress compiler warning for unused BufferToHexString
Simon McVittie
smcv at debian.org
Fri Oct 28 11:09:23 UTC 2016
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian/master
in repository openjk.
commit dfd7413b7e7613adcea63b0cd3b908e4418d8551
Author: Simon McVittie <smcv at debian.org>
Date: Thu Sep 22 08:43:34 2016 +0100
Suppress compiler warning for unused BufferToHexString
This function is only called when debugging challenges.
---
codemp/server/sv_challenge.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/codemp/server/sv_challenge.cpp b/codemp/server/sv_challenge.cpp
index 3bca98b..1331af8 100644
--- a/codemp/server/sv_challenge.cpp
+++ b/codemp/server/sv_challenge.cpp
@@ -30,6 +30,7 @@ static const size_t SECRET_KEY_LENGTH = MD5_DIGEST_SIZE; // Key length equal to
static qboolean challengerInitialized = qfalse;
static hmacMD5Context_t challenger;
+#ifdef DEBUG_SV_CHALLENGE
/*
====================
BufferToHexString
@@ -52,6 +53,7 @@ static const char *BufferToHexString(byte *buffer, size_t bufferLen)
hexString[bufferLen * 2] = '\0';
return hexString;
}
+#endif
/*
====================
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/openjk.git
More information about the Pkg-games-commits
mailing list