Surprisly clang started to tell me where variable may used uninitialized, correcting it!

That's a good point it tell me that, but was a bit unexpected ^^
This commit is contained in:
Godzil
2013-05-16 09:35:52 +02:00
committed by Manoël Trapier
parent c59e2f03ab
commit 0f10f91839
8 changed files with 15 additions and 13 deletions

View File

@@ -530,7 +530,7 @@ fatal(va_alist) /* fmt, args */
static void _error(int class, char *fn, unsigned int ln, char *fmt, va_list ap)
{
char *remark;
char *remark = NULL;
/* check visibility of message */
switch (class) {

View File

@@ -77,7 +77,7 @@ struct type *construct_type(int fund, struct type *tp, int qual, arith count, st
/* fund must be a type constructor: FIELD, FUNCTION, POINTER or
ARRAY. The pointer to the constructed type is returned.
*/
struct type *dtp;
struct type *dtp = NULL;
switch (fund) {
#ifndef NOBITFIELD