Suggestion for improvement for FreeMASTER (const pointer)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Suggestion for improvement for FreeMASTER (const pointer)

408 Views
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 Kudos
0 Replies