mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
Attempts to prevent leak warnings from static analyser
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32090 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
11e6f51bf4
commit
705e1a32ca
9 changed files with 98 additions and 5 deletions
|
@ -543,5 +543,12 @@ GSPrivateIsCollectable(const void *ptr) GS_ATTRIB_PRIVATE;
|
|||
NSZone*
|
||||
GSAtomicMallocZone (void);
|
||||
|
||||
/* A global location to which we can assign objects in order to prevent
|
||||
* the clang static analyser thinking we have leaked them when we haven't
|
||||
*/
|
||||
#ifdef __clang__
|
||||
extern id gsPrivateDummy GS_ATTRIB_PRIVATE;
|
||||
#endif
|
||||
|
||||
#endif /* _GSPrivate_h_ */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue