Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Aug 2018 18:45:16 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r337807 - head/contrib/lua/src
Message-ID:  <201808141845.w7EIjGpM058851@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808141845.w7EIjGpM058851>