[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] Missing do {} while (0)
From: |
Hans Petter Selasky |
Subject: |
[lwip-devel] Missing do {} while (0) |
Date: |
Fri, 9 Sep 2011 14:17:44 +0200 |
User-agent: |
KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) |
Hi,
Shouldn't the following non-debug definition use do { } while (0) ?
--HPS
Index: /lwip/src/include/lwip/debug.h
===================================================================
--- lwip/src/include/lwip/debug.h (revision 3)
+++ lwip/src/include/lwip/debug.h (working copy)
@@ -92,7 +92,7 @@
} while(0)
#else /* LWIP_DEBUG */
-#define LWIP_DEBUGF(debug, message)
+#define LWIP_DEBUGF(debug, message) do { } while (0)
#endif /* LWIP_DEBUG */
#endif /* __LWIP_DEBUG_H__ */
- [lwip-devel] Missing do {} while (0),
Hans Petter Selasky <=