]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: remove RT_ROUNDUP warning
authorDavid Lamparter <equinox@opensourcerouting.org>
Fri, 25 Aug 2017 23:41:07 +0000 (01:41 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Fri, 25 Aug 2017 23:46:40 +0000 (01:46 +0200)
This warning is at odds with how the world works.  Also, the code is
correct on all platforms we care about.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
zebra/kernel_socket.c

index 84d01bca6f045f28e4f452f5d5c333a197b7cd68..e2a1deb9ac691e11d16fe08446250e2f0c6a1166 100644 (file)
@@ -88,13 +88,10 @@ extern struct zebra_privs_t zserv_privs;
 #if !defined(ROUNDUP)
 
 /*
- * It's a bug for a platform not to define rounding/alignment for
- * sockaddrs on the routing socket.  This warning really is
- * intentional, to provoke filing bug reports with operating systems
- * that don't define RT_ROUNDUP or equivalent.
+ * If you're porting to a platform that changed RT_ROUNDUP but doesn't
+ * have it in its headers, this will break rather obviously and you'll
+ * have to fix it here.
  */
-#warning                                                                       \
-       "net/route.h does not define RT_ROUNDUP; making unwarranted assumptions!"
 
 /* OS X (Xcode as of 2014-12) is known not to define RT_ROUNDUP */
 #ifdef __APPLE__