From 07d397d74651435ff6f4d474876589e85967350e Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Tue, 14 Aug 2018 18:45:16 +0000 Subject: 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@ --- contrib/lua/src/lstrlib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'contrib/lua/src') diff --git a/contrib/lua/src/lstrlib.c b/contrib/lua/src/lstrlib.c index d6aac616add5c..7471345ae7b14 100644 --- a/contrib/lua/src/lstrlib.c +++ b/contrib/lua/src/lstrlib.c @@ -928,6 +928,7 @@ static void addquoted (luaL_Buffer *b, const char *s, size_t len) { } +#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)) { -- cgit v1.2.3