warning: assignment discards qualifiers from pointer target type

Gast #894073
Lesenswert?

Hallo,

ich habe die Compilerwarnung:

warning: assignment discards qualifiers from pointer target type

ich habe folgende code

in konstant.h
extern char const * const alfa_Group[];

in conf.h
steht

struct conf{
....
char const ** group;
.....
};

ich versuche in file conf.c

in func struct conf * set_conf(struct conf * cf)
{
     cf->group=alf_Group;
}

wo mache ich Falsche?

Danke

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren