warning question

Joel Sherrill joel.sherrill at OARcorp.com
Wed May 6 15:49:28 UTC 2009


Hi,

I am looking at warnings and wondered if someone
could figured this one out.

c/src/libchip/network/i82586.c:1722: warning: suggest parentheses around 
operand of '!' or change '|' to '||' or '!' to '~'

The code is clearly questionable IMO. ;)

  *IE_CMD_CFG_PROMISC(buf)   = !!promiscuous | manchester << 2;

Hopefully someone can help out.

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985





More information about the users mailing list