This is quite interesting. I don't think this is the case, but the compiler may actually be warning you that you are writing the value of PTCD pin 0, which you set as an input the line above (inputs are read-only).
I also prefer to set the pullups prior to setting the direction, but that is just me.
PTCDD_PTCDD0 =0;
PTCD_PTCD0=0; //Deleting this line won't do any harm.
PTCPE_PTCPE0 =1;