svn commit: r337807 - head/contrib/lua/src
Warner Losh
imp at FreeBSD.org
Tue Aug 14 18:45:17 UTC 2018
Author: imp
Date: Tue Aug 14 18:45:16 2018
New Revision: 337807
URL: https://svnweb.freebsd.org/changeset/base/337807
Log:
Prevent a wanring about checkdp being unused. It's not needed when we
have INT64 floats and somehow snuck through unused until now.
Reviewed by: kevans@
Modified:
head/contrib/lua/src/lstrlib.c
Modified: head/contrib/lua/src/lstrlib.c
==============================================================================
--- head/contrib/lua/src/lstrlib.c Tue Aug 14 18:44:41 2018 (r337806)
+++ head/contrib/lua/src/lstrlib.c Tue Aug 14 18:45:16 2018 (r337807)
@@ -928,6 +928,7 @@ static void addquoted (luaL_Buffer *b, const char *s,
}
+#if LUA_FLOAT_TYPE != LUA_FLOAT_INT64
/*
** Ensures the 'buff' string uses a dot as the radix character.
*/
@@ -938,7 +939,7 @@ static void checkdp (char *buff, int nb) {
if (ppoint) *ppoint = '.'; /* change it to a dot */
}
}
-
+#endif
static void addliteral (lua_State *L, luaL_Buffer *b, int arg) {
switch (lua_type(L, arg)) {
More information about the svn-src-all
mailing list