compiler warning when assigning null to pointer
When i compile this code:
I get a warning from my borland bcc32 5.5 compiler
unsigned short *pnt=new unsigned short;
cout<<"Not enough free memory available for pnt.";
pnt=0; //HERE IS THE PROBLEM
that says: 'pnt' is assigned a value that is never used in function main()
I was told to take warnings seriously but the program works, and you should always assign pointers to point to null after calling delete on them. So...
...CAN I IGNORE THIS WARNING???