diff options
author | lijunlong <lijunlong@openresty.com> | 2023-02-22 09:04:28 +0800 |
---|---|---|
committer | lijunlong <lijunlong@openresty.com> | 2023-02-22 09:17:50 +0800 |
commit | 1dff61d9bf390372124c13443e0131a96383f5bc (patch) | |
tree | b40b1f755aba6ec3908931cb7b0f4cba7f9a55d4 /fpconv.h | |
parent | 6f38a95a2d44ad3bd4cc49e14224296239da7412 (diff) | |
download | lua-cjson-1dff61d9bf390372124c13443e0131a96383f5bc.tar.gz lua-cjson-1dff61d9bf390372124c13443e0131a96383f5bc.tar.bz2 lua-cjson-1dff61d9bf390372124c13443e0131a96383f5bc.zip |
optimization: add void to functions with no arguments to prevent compiler warning.
Diffstat (limited to 'fpconv.h')
-rw-r--r-- | fpconv.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -7,12 +7,12 @@ | |||
7 | # define FPCONV_G_FMT_BUFSIZE 32 | 7 | # define FPCONV_G_FMT_BUFSIZE 32 |
8 | 8 | ||
9 | #ifdef USE_INTERNAL_FPCONV | 9 | #ifdef USE_INTERNAL_FPCONV |
10 | static inline void fpconv_init() | 10 | static inline void fpconv_init(void) |
11 | { | 11 | { |
12 | /* Do nothing - not required */ | 12 | /* Do nothing - not required */ |
13 | } | 13 | } |
14 | #else | 14 | #else |
15 | extern void fpconv_init(); | 15 | extern void fpconv_init(void); |
16 | #endif | 16 | #endif |
17 | 17 | ||
18 | extern int fpconv_g_fmt(char*, double, int); | 18 | extern int fpconv_g_fmt(char*, double, int); |