[cfe-dev] warning: if statement has empty body
Shantonu Sen
ssen at apple.com
Fri Mar 13 21:55:24 PDT 2009
Why do you believe this is bogus? What does CF_OBJC_FUNCDISPATCH0
expand to, if anything? What is the preprocessed output (if you're
using ccc, add -save-temps and look at CFBag.i)
Shantonu
Sent from my MacBook
On Mar 13, 2009, at 9:46 PM, रजनीश wrote:
> Clang is giving bogus warning for the following case. Taken from
> opencflite.
>
>
> CFBag.c:946:92: warning: if statement has empty body
> if (CFDictionary || CFSet) CF_OBJC_FUNCDISPATCH0(__kCFHashTypeID,
> CFIndex, hc, "count");
> ^
> CFBag.c:958:91: warning: if statement has empty body
> if (CFSet) CF_OBJC_FUNCDISPATCH1(__kCFHashTypeID, CFIndex, hc,
> "countForObject:", key);
> ^
> CFBag.c:1024:116: warning: if statement has empty body
> if (CFDictionary) CF_OBJC_FUNCDISPATCH2(__kCFHashTypeID, Boolean,
> hc, "_getValue:forKey:", (any_t *)value, key);
> ^
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list