Question about a gcc 4 warning
Question about a gcc 4 warning
- Subject: Question about a gcc 4 warning
- From: Kevin Hoyt <email@hidden>
- Date: Fri, 12 Aug 2005 16:15:45 -0700
Hi all,
Just a quick question about a warning from gcc 4.
given this code
fileName[] = "myfile";
char *path=StrDup(path=NULL, fileName);
Where StrDup() takes two pointers to char.
I get 'Operation on "path" may be undefined'
The question, is why? Seems to me that 'path' should be assigned NULL
before the call to strdup and all is well...
And bonus points to whomever can site the ANSI standard that the warning
comes from :-)
Kevin Hoyt
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden