Z
zhixin_han
Following warnings are found in my application:
..../adm_std_mo_descr.h:240: warning: non-static const member `const
struct std_tee_t std_mo::tee' in class without a constructor
..../adm_std_mo_descr.h:244: warning: non-static const member `const
char *const std_mo::name' in class without a constructor
The header file looks as the following:
typedef struct std_tee {
const unsigned int size;
} std_tee_t;
typedef struct std_mo {
const std_tee_t tee;
const char* const name;
} std_mo_t;
I am wondering what the problem is. I tried to write a small test
program, but it compiles without such warning.
I am using gcc2.7.2 on Tornado/VxWorks.
Thanks a lot for your help.
Zhixin
..../adm_std_mo_descr.h:240: warning: non-static const member `const
struct std_tee_t std_mo::tee' in class without a constructor
..../adm_std_mo_descr.h:244: warning: non-static const member `const
char *const std_mo::name' in class without a constructor
The header file looks as the following:
typedef struct std_tee {
const unsigned int size;
} std_tee_t;
typedef struct std_mo {
const std_tee_t tee;
const char* const name;
} std_mo_t;
I am wondering what the problem is. I tried to write a small test
program, but it compiles without such warning.
I am using gcc2.7.2 on Tornado/VxWorks.
Thanks a lot for your help.
Zhixin