This is an automated email from the git hooks/post-receive script. smcv pushed a commit to branch debian/master in repository openjk.
commit 37ba2b6b09f5d594665bb887ce39444a63ae18d1 Author: Simon McVittie <s...@debian.org> Date: Wed Sep 21 12:59:58 2016 +0100 Declare platform-independent byteswapping functions QINLINE In addition to enabling inlining for these very simple functions, this suppresses warnings from gcc 6: …/shared/qcommon/q_platform.h:302:13: warning: 'void CopyShortSwap(void*, const void*)' defined but not used [-Wunused-function] --- shared/qcommon/q_platform.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shared/qcommon/q_platform.h b/shared/qcommon/q_platform.h index 3ff6e9c..0d60290 100644 --- a/shared/qcommon/q_platform.h +++ b/shared/qcommon/q_platform.h @@ -299,17 +299,17 @@ static inline uint32_t LongSwap(uint32_t v) } #endif -static void CopyShortSwap( void *dest, const void *src ) +static QINLINE void CopyShortSwap( void *dest, const void *src ) { *(uint16_t*)dest = ShortSwap(*(uint16_t*)src); } -static void CopyLongSwap( void *dest, const void *src ) +static QINLINE void CopyLongSwap( void *dest, const void *src ) { *(uint32_t*)dest = LongSwap(*(uint32_t*)src); } -static float FloatSwap(float f) +static QINLINE float FloatSwap(float f) { float out; CopyLongSwap(&out, &f); -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/openjk.git _______________________________________________ Pkg-games-commits mailing list Pkg-games-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits