lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] Minor opt.h patch


From: James G. Smith
Subject: [lwip-devel] Minor opt.h patch
Date: Fri, 13 Jul 2012 16:13:22 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Lightning/1.0b3pre Thunderbird/3.1.16

I did not think it worth adding a "patch request" for the following;
since it is such a simple change I am hoping a maintainer will just take
pity on it and update the tree :-) However I am willing to do a formal
patch request if it is a case that all edits need a patch#/bug# to
update against.

Basically the "opt.h" is missing a !LWIP_STATS definition to 0 for
ETHARP_STATS, resulting in a compiler warning if stats are not
configured. The alternative is to have ETHARP_STATS explicitly defined
in the lwipopts.h file; but that seems a bit crazy since opt.h is
handling all of the other *_STATS cases.

-- Jamie

diff --git a/include/lwip/opt.h b/include/lwip/opt.h
--- a/include/lwip/opt.h
+++ b/include/lwip/opt.h
@@ -1668,6 +1668,7 @@
 #else

 #define LINK_STATS                      0
+#define ETHARP_STATS                    0
 #define IP_STATS                        0
 #define IPFRAG_STATS                    0
 #define ICMP_STATS                      0



reply via email to

[Prev in Thread] Current Thread [Next in Thread]