A
Ali
incompatible warning in C/C++
I am using MS Visual C/C++ 6.0. I get the following warning when compiling
C:model.ex.c(1221) : warning C4133: '=' : incompatible types - from
'struct s_lsp_def *' to 'struct s_lsp_def *'
In the .h file, I have
======================
typedef struct s_lsp_def;
typedef struct
{
int lsp_id;
int priority;
struct s_lsp_def* ptr_next_lsp_def;
}s_lsp_def;
in a .c file, model.ex.c, I have
================================
int bcModel_add_lspToList ( s_lsp_def* the_ptr_lsp_def,
{
s_lsp_def* curr_ptr_lsp_def;
// the following line is the PROBLEM
curr_ptr_lsp_def->ptr_next_lsp_def = the_ptr_lsp_def;
}
Does anyone understand why this warning.
Thanks.
I am using MS Visual C/C++ 6.0. I get the following warning when compiling
C:model.ex.c(1221) : warning C4133: '=' : incompatible types - from
'struct s_lsp_def *' to 'struct s_lsp_def *'
In the .h file, I have
======================
typedef struct s_lsp_def;
typedef struct
{
int lsp_id;
int priority;
struct s_lsp_def* ptr_next_lsp_def;
}s_lsp_def;
in a .c file, model.ex.c, I have
================================
int bcModel_add_lspToList ( s_lsp_def* the_ptr_lsp_def,
{
s_lsp_def* curr_ptr_lsp_def;
// the following line is the PROBLEM
curr_ptr_lsp_def->ptr_next_lsp_def = the_ptr_lsp_def;
}
Does anyone understand why this warning.
Thanks.