summaryrefslogtreecommitdiffstats
path: root/firmware/common
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2017-12-23 21:23:06 -0500
committerFranklin Wei <git@fwei.tk>2017-12-23 21:28:20 -0500
commit6416d96fbc6946a0eee8ba29bb881fbf4dcbe607 (patch)
tree3a1e0bf7766c9589c223fa70e5309de0593e3930 /firmware/common
parenta855d6202536ff28e5aae4f22a0f31d8f5b325d0 (diff)
downloadrockbox-6416d96fbc6946a0eee8ba29bb881fbf4dcbe607.tar.gz
rockbox-6416d96fbc6946a0eee8ba29bb881fbf4dcbe607.tar.bz2
rockbox-6416d96fbc6946a0eee8ba29bb881fbf4dcbe607.zip
fix red
Change-Id: I20f1bd6f0208f6108d68fb59206b09dd9da4f1af
Diffstat (limited to 'firmware/common')
-rw-r--r--firmware/common/vuprintf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/common/vuprintf.c b/firmware/common/vuprintf.c
index becb05e136..a4b3c72680 100644
--- a/firmware/common/vuprintf.c
+++ b/firmware/common/vuprintf.c
@@ -23,6 +23,7 @@
#include <limits.h>
#include <string.h>
#include <stddef.h>
+#include <stdio.h> /* for snprintf */
#include "system.h"
#include "vuprintf.h"
@@ -533,6 +534,8 @@ static const char * format_f(double f,
int radixchar,
bool *numericp)
{
+ (void) radixchar;
+ (void) numericp;
fmt_buf->length = snprintf(fmt_buf->buf, 24, "%d.%06d", (int)f, ABS((int)((f - (int)f)*1e6)));
return fmt_buf->buf;
}