warning: assignment discards qualifiers from pointer target type

Pokeglobe's Avatar, Join Date: Sep 2009
Newbie Member
Hi , I am writing a code for someone. This isn't a big problem but it shows up and if I release my source It wont look professional.

on Make
Code:
warning: assignment discards qualifiers from pointer target type
code affected
Code:
p_cr = WZD_CONTENTS(p_wzd);
Is there something wrong?
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
Code with warnings is not necessarily "unprofessional". Most code has warnings, the common way of suppressing those warnings is with casts, which are risky, and arguably just as "unprofessional" as allowing the warning through, because warnings are helpful in investigating possible issues with the code.

What are the definitions of p_cr, WZD_CONTENTS and p_wzd?