From 1dff61d9bf390372124c13443e0131a96383f5bc Mon Sep 17 00:00:00 2001 From: lijunlong Date: Wed, 22 Feb 2023 09:04:28 +0800 Subject: optimization: add void to functions with no arguments to prevent compiler warning. --- fpconv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fpconv.c') diff --git a/fpconv.c b/fpconv.c index 3e480ec..0ef7f18 100644 --- a/fpconv.c +++ b/fpconv.c @@ -55,7 +55,7 @@ static char locale_decimal_point = '.'; * localconv() may not be thread safe (=>crash), and nl_langinfo() is * not supported on some platforms. Use sprintf() instead - if the * locale does change, at least Lua CJSON won't crash. */ -static void fpconv_update_locale() +static void fpconv_update_locale(void) { char buf[8]; @@ -202,7 +202,7 @@ int fpconv_g_fmt(char *str, double num, int precision) return len; } -void fpconv_init() +void fpconv_init(void) { fpconv_update_locale(); } -- cgit v1.2.3-55-g6feb