summaryrefslogtreecommitdiff
path: root/nuttx/netutils/webserver/httpd-cgi.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/netutils/webserver/httpd-cgi.c')
-rw-r--r--nuttx/netutils/webserver/httpd-cgi.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/nuttx/netutils/webserver/httpd-cgi.c b/nuttx/netutils/webserver/httpd-cgi.c
index baf671fa8..3398e7a7b 100644
--- a/nuttx/netutils/webserver/httpd-cgi.c
+++ b/nuttx/netutils/webserver/httpd-cgi.c
@@ -34,6 +34,8 @@
#include <string.h>
#include <sys/socket.h>
+#include <nuttx/compiler.h>
+
#include <net/uip/uip.h>
#include <net/uip/httpd.h>
@@ -115,7 +117,9 @@ httpd_cgifunction httpd_cgi(char *name)
return (*f)->function;
}
}
-#warning REVISIT -- must wait to return
+#ifdef CONFIG_CPP_HAVE_WARNING
+# warning REVISIT -- must wait to return
+#endif
return nullfunction;
}