Add a GS_PADDING_IVAR macro. This defines the void *gs_unused; instance variable with __attribute__((unused)) on clang so that the static analyser only reports unused ivars that we expect to be used. This also makes it slightly easier to add the padding ivar to new classes.

Note: The padding ivar has been added to NSRegularExpression.  This will break the ABI for anyone subclassing NSRegularExpression, but hopefully that's no one (done before the next release, to make sure that we don't break the ABI between releases, only for people following -trunk).



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32033 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
theraven 2011-02-10 11:02:50 +00:00
parent ae0204e45d
commit 31e5eb9c38
35 changed files with 47 additions and 108 deletions

View file

@ -40,9 +40,7 @@ extern "C" {
NSString *_lockPath;
NSDate *_lockTime;
#endif
#if !GS_NONFRAGILE
void *_unused;
#endif
GS_PADDING_IVAR;
}
+ (NSDistributedLock*) lockWithPath: (NSString*)aPath;