Created
July 5, 2012 16:28
-
-
Save PsychoH13/3054657 to your computer and use it in GitHub Desktop.
False-positive static analyzer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct RandomStruct { NSInteger columnSpan; }; | |
void WeirdStaticAnalyzerDiagnostic(void) | |
{ | |
struct TestStruct { struct RandomStruct strf; NSUInteger intf; } origin = { { 0 }, 0 }; | |
origin.strf = (struct RandomStruct){ 0 }; | |
struct TestStruct trigger = origin; | |
NSLog(@"%ld", trigger.intf); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment