Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jun 2010 00:08:14 +0200
From:      Max Laier <max@love2party.net>
To:        freebsd-current@freebsd.org
Subject:   Re: [patch] Misc warnings found by clang.
Message-ID:  <201006150008.14124.max@love2party.net>
In-Reply-To: <EBFB6DD0-2517-4623-9153-4CBC93A8A0A9@gmail.com>
References:  <EBFB6DD0-2517-4623-9153-4CBC93A8A0A9@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006150008.14124.max>