summaryrefslogtreecommitdiff
path: root/nuttx/lib/lib_sscanf.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/lib/lib_sscanf.c')
-rw-r--r--nuttx/lib/lib_sscanf.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/nuttx/lib/lib_sscanf.c b/nuttx/lib/lib_sscanf.c
index b02515da7..c6110bdb0 100644
--- a/nuttx/lib/lib_sscanf.c
+++ b/nuttx/lib/lib_sscanf.c
@@ -260,10 +260,9 @@ int vsscanf(char *buf, const char *s, va_list ap)
else if (*s == 'f')
{
-#if 1
-# ifdef CONFIG_CPP_HAVE_WARNING
-# warning "No floating point conversions"
-# endif
+#ifndef CONFIG_LIBC_FLOATINGPOINT
+ /* No floating point conversions */
+
void *pv = va_arg(ap, void*);
lvdbg("vsscanf: Return 0.0 to %p\n", pv);
@@ -331,7 +330,9 @@ int vsscanf(char *buf, const char *s, va_list ap)
}
if (!noassign)
- count++;
+ {
+ count++;
+ }
width = noassign = lflag = 0;
s++;
}