Silence this warning too for C89 - not correct but whatever -

never used
This commit is contained in:
twinaphex 2016-02-25 22:36:08 +01:00
parent 4b9143430c
commit 1516ee8e76

View File

@ -803,8 +803,10 @@ void config_set_double(config_file_t *conf, const char *key, double val)
char buf[128] = {0};
#ifdef __cplusplus
snprintf(buf, sizeof(buf), "%f", (float)val);
#else
#elif defined(__STDC_VERSION__) && __STDC_VERSION__>=199901L
snprintf(buf, sizeof(buf), "%lf", val);
#else
snprintf(buf, sizeof(buf), "%f", (float)val);
#endif
config_set_string(conf, key, buf);
}