ether-wake does not compile with "-Werror"

Markus Wigge mwigge at marcant.net
Tue Jan 23 16:57:05 UTC 2007


Hi,

networking/ether-wake.c 215-231:
static inline void get_dest_addr(const char *hostid, struct ether_addr
*eaddr)
{
    struct ether_addr *eap;

    eap = ether_aton(hostid);
    if (eap) {
        *eaddr = *eap;
        bb_debug_msg("The target station address is %s\n\n",
ether_ntoa(eaddr));
#if !defined(__UCLIBC__)
    } else if (ether_hostton(hostid, eaddr) == 0) {
        bb_debug_msg("Station address for hostname %s is %s\n\n",
hostid, ether_ntoa(eaddr));
#else
# warning Need to implement ether_hostton() for uClibc
#endif
    } else
        bb_show_usage();
}

With "-Werror" the part "#else ... # warning ... #endif" leads to an
error (return code 1) which breaks the build process.

Maybe you should comment it out like:
#else
//# warning Need to implement ether_hostton() for uClibc
#endif

bye,
  Markus



More information about the busybox mailing list