summaryrefslogtreecommitdiff
path: root/nuttx/netutils/tftpc/tftpc_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/netutils/tftpc/tftpc_internal.h')
-rw-r--r--nuttx/netutils/tftpc/tftpc_internal.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/nuttx/netutils/tftpc/tftpc_internal.h b/nuttx/netutils/tftpc/tftpc_internal.h
index 57a081022..9e853efba 100644
--- a/nuttx/netutils/tftpc/tftpc_internal.h
+++ b/nuttx/netutils/tftpc/tftpc_internal.h
@@ -42,6 +42,7 @@
#include <nuttx/config.h>
#include <sys/types.h>
+#include <nuttx/compiler.h>
#include <net/uip/uipopt.h>
/****************************************************************************
@@ -88,7 +89,9 @@
#if UIP_UDP_MSS < TFTP_MAXPACKETSIZE
# define TFTP_PACKETSIZE UIP_UDP_MSS
-# warning "uIP MSS is too small for TFTP"
+# ifdef CONFIG_CPP_HAVE_WARNING
+# warning "uIP MSS is too small for TFTP"
+# endif
#else
# define TFTP_PACKETSIZE TFTP_MAXPACKETSIZE
#endif