I am getting warning:
miniunz.c:342:25: Passing 'const char *' to parameter of type 'char *' discards qualifiers
in miniunz.c file of the Zip Archive library. Specifically:
const char* write_filename;
fopen(write_filename,"wb"); //// This work fine...........
makedir(write_filename); //// This line shows warning....
How should this warning be removed so that both work fine?
makedir((char*)write_filename);
. hope this will help you. – A Bmakedir
: there is no reason I can see why it shouldn't be able to accept aconst char*
argument, so you should change it so that it does – Brian Bi