Re: [patch] Misc warnings found by clang.

From: Max Laier <max_at_love2party.net>
Date: Tue, 15 Jun 2010 00:08:14 +0200
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
Received on Mon Jun 14 2010 - 20:08:16 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:04 UTC