svn commit: r239071 - head/usr.bin/make

Steve Kargl sgk at troutmask.apl.washington.edu
Sun Aug 5 21:50:41 UTC 2012


On Sun, Aug 05, 2012 at 03:55:37PM +0000, Dimitry Andric wrote:
> Author: dim
> Date: Sun Aug  5 15:55:36 2012
> New Revision: 239071
> URL: http://svn.freebsd.org/changeset/base/239071
> 
> Log:
>   In usr.bin/make/var.c, function ParseModifier(), initialize the 'error'
>   variable to NULL, to avoid using it uninitialized in certain cases.
>   
>   This fixes the following clang 3.2 warning:
>   
>     usr.bin/make/var.c:1770:10: error: variable 'error' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
>                                             if (vp->execute) {
>                                                 ^~~~~~~~~~~

Please wrap your commit messages to less than 80 characters.
In fact, including the clang warning does not add any valuable
information and should be omitted.

-- 
Steve


More information about the svn-src-head mailing list