HP Code Advisor Diagnostics

}
Action:
Initialize the reported variable with a value before it's use. This may not be the only use of the
uninitialized value. So it is best to initialize variables as close as possible to the point of declaration.
Reference:
20036 variable %s (field %s) is used before its value is set
Cause:
The compiler has detected use of a member of a struct variable before it's value is set.
Example:
struct foo
{
int a;
int b;
};
int func()
{
struct foo x;
x.a = x.b + 10; // warning 20036 for use of field b
return 0;
}
Action:
Initialize the struct member with a value before it's use. This may not be the only use of the
uninitialized value. So it is best to initialize the field as close as possible to the point of struct
variable declaration.
Reference:
20037 variable %s may be used before its value is set
Cause:
The compiler has detected use of a variable which might not always be used initialized before
this use. One or more execution paths that lead to this use do not initialize this variable.
Example:
int func(int a)
{
int b,c;
if (a > 10)
b = a;
c = b + 10; // warning 20037 for use of variable b
return c;
}
Action:
Check if all the execution paths leading to the usage of reported variable initialize it. To avoid
such issues it is best to initialize the variable close to the point of declaration.
Reference:
20048 %s "%s" has incompatible type with previous declaration at line
%s in file "%s"
Cause:
20036 variable %s (field %s) is used before its value is set 73