30a845609c
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) { ^~~~~~~~~~~ usr.bin/make/var.c:1777:10: note: uninitialized use occurs here if (error) ^~~~~ usr.bin/make/var.c:1770:6: note: remove the 'if' if its condition is always true if (vp->execute) { ^~~~~~~~~~~~~~~~~ usr.bin/make/var.c:1768:23: note: initialize the variable 'error' to silence this warning const char *error; ^ = NULL MFC after: 1 week |
||
---|---|---|
.. | ||
arch.c | ||
arch.h | ||
buf.c | ||
buf.h | ||
cond.c | ||
cond.h | ||
config.h | ||
dir.c | ||
dir.h | ||
for.c | ||
for.h | ||
globals.h | ||
GNode.h | ||
hash_tables.c | ||
hash_tables.h | ||
hash.c | ||
hash.h | ||
job.c | ||
job.h | ||
lst.c | ||
lst.h | ||
main.c | ||
make.1 | ||
make.c | ||
make.h | ||
Makefile | ||
Makefile.dist | ||
parse.c | ||
parse.h | ||
pathnames.h | ||
proc.c | ||
proc.h | ||
shell.c | ||
shell.h | ||
str.c | ||
str.h | ||
suff.c | ||
suff.h | ||
targ.c | ||
targ.h | ||
util.c | ||
util.h | ||
var.c | ||
var.h |