[patch] Misc warnings found by clang.

Max Laier max at love2party.net
Mon Jun 14 22:08:16 UTC 2010


On Monday 14 June 2010 23:22:42 Pawel Worach wrote:
> Here is a patch that fixes a couple of "warning: format string is not a
> string literal" and a couple of unused/never read variable "len" warnings
> in lib/libugidfw.

I'm not sure about the intention behind the len assignements in libugidfw - 
might be just a leftover - but if the idea is to teach a model that "we 
generally care about the return value of snprintf()", a void cast might be the 
more protable solution.

> http://pes.vlakno.cz/~pwo/clang-warn-fix-head.diff

Regards,
  Max


More information about the freebsd-current mailing list