rcs run through clang?

Mark Andrews marka at isc.org
Mon Feb 27 03:52:23 UTC 2012


In message <4F4AF842.4000002 at dougbarton.us>, Doug Barton writes:
> Howdy,
> 
> I just ran the latest 9.9 rc through clang for fun (I had it installed
> for something else, so what the heck?) and noticed that it had a few
> "expression result unused" warnings that look harmless, but could
> probably use some investigation to make sure that they didn't result
> from logic errors.
> 
> I'm guessing that since there are a bunch of rcs in the pipe atm, it's
> probably worth repeating the exercise for them before release time ...

All the branches are run through clang (ccc-analyzer).  Ignoring the
errors from ATF we have the following warnings which have been evaluated
and marked to be ignored:

HEAD:
IGNORED: rpz.c:193:3: warning: Value stored to 'str' is never read
IGNORED: getaddrinfo.c:430:31: warning: The right operand to '+' is always 0
IGNORED: ./main.c:368:21: warning: Both operands to '!=' always have the same value

9.6:
IGNORED: getaddrinfo.c:430:31: warning: The right operand to '+' is always 0
IGNORED: ./main.c:314:21: warning: Both operands to '!=' always have the same value

9.7:
IGNORED: getaddrinfo.c:430:31: warning: The right operand to '+' is always 0
IGNORED: ./main.c:360:21: warning: Both operands to '!=' always have the same value

9.8:
IGNORED: rpz.c:193:3: warning: Value stored to 'str' is never read
IGNORED: getaddrinfo.c:430:31: warning: The right operand to '+' is always 0
IGNORED: ./main.c:368:21: warning: Both operands to '!=' always have the same value

9.9:
IGNORED: rpz.c:193:3: warning: Value stored to 'str' is never read
IGNORED: getaddrinfo.c:430:31: warning: The right operand to '+' is always 0
IGNORED: ./main.c:368:21: warning: Both operands to '!=' always have the same value

> Doug
> 
> -- 
> 
> 	It's always a long day; 86400 doesn't fit into a short.
> 
> 	Breadth of IT experience, and depth of knowledge in the DNS.
> 	Yours for the right price.  :)  http://SupersetSolutions.com/
> 
> _______________________________________________
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe
>  from this list
> 
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: marka at isc.org



More information about the bind-users mailing list