Suggestion for improvement for FreeMASTER (const pointer)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Suggestion for improvement for FreeMASTER (const pointer)

649 次查看
hkro
Contributor I

The variable name in the struct FMSTR_REV_BUFF is a pointer to FMSTR_CHAR (FMSTR_CHAR *name). So, some compilers issue a warning in the following lines:

FMSTR_REC_BUFF recCfg;
recCfg.name = "My Recorder";

I have checked the code and it is possible to change the variable to

const FMSTR_CHAR *name;
0 项奖励
回复
0 回复数