zebra: remove RT_ROUNDUP warning

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>
This commit is contained in:
David Lamparter 2017-08-26 01:41:07 +02:00
parent d440e3dbf0
commit adf580f72a

View File

@ -88,13 +88,10 @@ extern struct zebra_privs_t zserv_privs;
#if !defined(ROUNDUP) #if !defined(ROUNDUP)
/* /*
* It's a bug for a platform not to define rounding/alignment for * If you're porting to a platform that changed RT_ROUNDUP but doesn't
* sockaddrs on the routing socket. This warning really is * have it in its headers, this will break rather obviously and you'll
* intentional, to provoke filing bug reports with operating systems * have to fix it here.
* that don't define RT_ROUNDUP or equivalent.
*/ */
#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 */ /* OS X (Xcode as of 2014-12) is known not to define RT_ROUNDUP */
#ifdef __APPLE__ #ifdef __APPLE__