Hi again,
I recently posted a couple requests to help
with compile errors. Well, I have one last
one to get rid of.
The following is the start of a function
and it gets the warning on the last line.
/* ***************************************** */
void parse_how_parm(struct load_how *how)
{ unsigned short tlp;
union howdef_type *howdef;
unsigned short temp;
Boolean hdw_flag = FALSE;
switch (asts_reg9)
{ case 0:
if (!how00_rcvd_flag) how00_rcvd_flag = 1;
howdef->how_ld = *how;
/* ***************************************** */
Warning: C4700
Message: local variable 'howdef' used without
having been initialized
The code works, but I must get rid of this error.
The variable howdef is a structure of type
howdef_type which is comprised of several
other structures.
howdef->how_ld is a structure of 3 unsigned shorts.
*how is a pointer to three unsigned shorts.
How do I make the compiler happy?
Thanks,
Wayne
I recently posted a couple requests to help
with compile errors. Well, I have one last
one to get rid of.
The following is the start of a function
and it gets the warning on the last line.
/* ***************************************** */
void parse_how_parm(struct load_how *how)
{ unsigned short tlp;
union howdef_type *howdef;
unsigned short temp;
Boolean hdw_flag = FALSE;
switch (asts_reg9)
{ case 0:
if (!how00_rcvd_flag) how00_rcvd_flag = 1;
howdef->how_ld = *how;
/* ***************************************** */
Warning: C4700
Message: local variable 'howdef' used without
having been initialized
The code works, but I must get rid of this error.
The variable howdef is a structure of type
howdef_type which is comprised of several
other structures.
howdef->how_ld is a structure of 3 unsigned shorts.
*how is a pointer to three unsigned shorts.
How do I make the compiler happy?
Thanks,
Wayne