Im getting this warning even though theres no possibility that it would remain uninitialized. The Visual Studio 2008 compiler fails to detect this.
How do i suppress this warning at this piece of code only?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would tend to side with the compiler on this one; you probably initialized it in a nested conditional statement which isn’t always hit. But if you really insist on ignoring the warning, you can use the appropriate #pragma directive with the warning number.