While passing string constants
to functions write it as:
void setpart(const char name[]);
setpart("Hello");
instead of const char name[]
, you could also write const char \*name
It worked for me to remove this error:
[Warning] deprecated conversion from string constant to 'char*' [-Wwrite-strings]