mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
avoid some compiler warnings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24765 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9bfdfd9269
commit
d259822e2b
2 changed files with 6 additions and 7 deletions
|
@ -212,8 +212,8 @@ typedef int32_t volatile *gsatomic_t;
|
|||
|
||||
#define GSATOMICREAD(X) (*(X))
|
||||
|
||||
#define GSAtomicIncrement(X) InterlockedIncrement(X)
|
||||
#define GSAtomicDecrement(X) InterlockedDecrement(X)
|
||||
#define GSAtomicIncrement(X) InterlockedIncrement((LONG volatile*)X)
|
||||
#define GSAtomicDecrement(X) InterlockedDecrement((LONG volatile*)X)
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -352,9 +352,7 @@ static GSIMapTable_t retain_counts = {0};
|
|||
BOOL
|
||||
NSDecrementExtraRefCountWasZero(id anObject)
|
||||
{
|
||||
#if GS_WITH_GC
|
||||
return NO;
|
||||
#else /* GS_WITH_GC */
|
||||
#if !GS_WITH_GC
|
||||
if (double_release_check_enabled)
|
||||
{
|
||||
unsigned release_count;
|
||||
|
@ -457,9 +455,9 @@ NSDecrementExtraRefCountWasZero(id anObject)
|
|||
--(node->value.uint);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
return NO;
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
*/
|
||||
|
||||
#include "GSURLPrivate.h"
|
||||
#include "Foundation/NSError.h"
|
||||
|
||||
|
||||
// Internal data storage
|
||||
|
|
Loading…
Reference in a new issue