summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Hall <GMCH@hestia.halldom.com>2010-04-17 18:20:26 +0100
committerChris Hall <GMCH@hestia.halldom.com>2010-04-17 18:20:26 +0100
commit45e56ea7b20686d425030bd43f665cd0e690eb31 (patch)
tree07dee16187d506a9665a8043433d4732c1fd629d
parent02e3ea8227a72d70c01208bf861e1560e540c972 (diff)
downloadquagga-45e56ea7b20686d425030bd43f665cd0e690eb31.tar.bz2
quagga-45e56ea7b20686d425030bd43f665cd0e690eb31.tar.xz
Another compiler warning bites the dust.
Compiling with gcc 4.2.1 on FreeBSD seems to come up with different warnings than gcc 4.4.3 on Linux -- even with, as far as one can see, exactly the same compiler options. This is, in fact, a spurious complaint in ripngd.c.
-rw-r--r--ripngd/ripngd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ripngd/ripngd.c b/ripngd/ripngd.c
index fb6b6423..cd4e0586 100644
--- a/ripngd/ripngd.c
+++ b/ripngd/ripngd.c
@@ -1332,7 +1332,7 @@ ripng_read (struct thread *thread)
int sock;
struct sockaddr_in6 from;
struct ripng_packet *packet;
- unsigned int ifindex;
+ unsigned int ifindex = 0 ; /* avoid warning (gcc 4.2.1 !) */
struct interface *ifp;
int hoplimit = -1;