[quagga-dev 12097] Re: [GIT RFC] "final" warning cleanup
sharpd at cumulusnetworks.com
Wed Mar 4 13:23:02 GMT 2015
This is good. I've been working on cleaning up the warnings as well, this
will obviate a bunch of my changes.
I'm not sure of a great way to offer comments so if you want a different
methodology please let me know. I only have a couple comments:
diff --git a/bgpd/bgp_ecommunity.c b/bgpd/bgp_ecommunity.c
index 482e76b..d258bdb 100644
@@ -511,7 +511,7 @@ struct ecommunity *
ecommunity_str2com (const char *str, int type, int keyword_included)
struct ecommunity *ecom = NULL;
- enum ecommunity_token token;
+ enum ecommunity_token token = 0;
struct ecommunity_val eval;
int keyword = 0;
can we set token = ecommunity_token_unknown instead of 0? I wouldn't mind
moving ecommunity_token_unknown to the front of the enum either.
Why not just remove the lines, instead of commenting them out, and why set
some variables to unused? Just remove them as well?
On Wed, Mar 4, 2015 at 1:53 AM, David Lamparter <
equinox at opensourcerouting.org> wrote:
> Hi everyone,
> I went and killed the remaining warnings that crop up when compiling
> Quagga. The result is pushed at:
> The following patches are non-trivial and might need some additional
> - "zebra: use SA_SIZE for RT_ROUNDUP on FreeBSD"
> - "bgpd: fix SNMP write support"
> Additionally, the following patches fix things that may have been
> - "bgpd, zebra: fix struct/pointer sizeof mixups"
> - "isisd: fix minor & vs. && mix-up"
> Everything else *should* be trivial. Note the last 2 patches in the
> branch change CFLAGS behavior and add "--enable-werror". I intend to
> start using the latter and insta-refuse any patches that introduce
> I have a warning-free build in the following environments:
> Linux/glibc 2.20:
> - gcc 4.5.4, 4.6.4, 4.7.4, 4.8.3, 4.9.2
> - clang 3.5.0
> - icc 14.0.3
> FreeBSD 10.0-RELEASE-p17
> - clang 3.3
> (Greg, can you do a run on NetBSD?)
> If you have comments, please post them now - even though this says RFC
> in the subject, there might not be another list cycle on this :)
> Quagga-dev mailing list
> Quagga-dev at lists.quagga.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Quagga-dev