I did a search but I did not quite understand what this means and what it says about my code.
I have this function cria_palavra
that returns a pointer, there in main
, when I will receive that return in another function insere_final
gives this warning of the title
int insere_lista_final(int i, Lista* li, char *dt) // parametros da func
insere_lista_final(i,li,cria_palavra(i,aux,li));
char cria_palavra(int i, char *aux, Lista *li){
char *plv;
plv = (char*)malloc(i*sizeof(char));// aloca a palavra
strncpy(plv,aux,i);// passa aux para plv
plv[i]='int insere_lista_final(int i, Lista* li, char *dt) // parametros da func
insere_lista_final(i,li,cria_palavra(i,aux,li));
char cria_palavra(int i, char *aux, Lista *li){
char *plv;
plv = (char*)malloc(i*sizeof(char));// aloca a palavra
strncpy(plv,aux,i);// passa aux para plv
plv[i]='%pre%'; // retira o lixo
return *plv;
}
'; // retira o lixo
return *plv;
}