diff options
author | Warner Losh <imp@FreeBSD.org> | 2018-08-14 18:45:16 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2018-08-14 18:45:16 +0000 |
commit | 07d397d74651435ff6f4d474876589e85967350e (patch) | |
tree | 1c31819e13cb1471432329e9b9d5e0473bf78219 /contrib/lua | |
parent | 9d45c24cc4078e0c2962ba28e5a726709fef2269 (diff) | |
download | src-test-07d397d74651435ff6f4d474876589e85967350e.tar.gz src-test-07d397d74651435ff6f4d474876589e85967350e.zip |
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@
Notes
Notes:
svn path=/head/; revision=337807
Diffstat (limited to 'contrib/lua')
-rw-r--r-- | contrib/lua/src/lstrlib.c | 3 |
1 files changed, 2 insertions, 1 deletions
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)) { |