mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-05 22:20:59 +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
84f26e6805
commit
ebe0afc55d
2 changed files with 6 additions and 7 deletions
|
@ -212,8 +212,8 @@ typedef int32_t volatile *gsatomic_t;
|
||||||
|
|
||||||
#define GSATOMICREAD(X) (*(X))
|
#define GSATOMICREAD(X) (*(X))
|
||||||
|
|
||||||
#define GSAtomicIncrement(X) InterlockedIncrement(X)
|
#define GSAtomicIncrement(X) InterlockedIncrement((LONG volatile*)X)
|
||||||
#define GSAtomicDecrement(X) InterlockedDecrement(X)
|
#define GSAtomicDecrement(X) InterlockedDecrement((LONG volatile*)X)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -352,9 +352,7 @@ static GSIMapTable_t retain_counts = {0};
|
||||||
BOOL
|
BOOL
|
||||||
NSDecrementExtraRefCountWasZero(id anObject)
|
NSDecrementExtraRefCountWasZero(id anObject)
|
||||||
{
|
{
|
||||||
#if GS_WITH_GC
|
#if !GS_WITH_GC
|
||||||
return NO;
|
|
||||||
#else /* GS_WITH_GC */
|
|
||||||
if (double_release_check_enabled)
|
if (double_release_check_enabled)
|
||||||
{
|
{
|
||||||
unsigned release_count;
|
unsigned release_count;
|
||||||
|
@ -457,9 +455,9 @@ NSDecrementExtraRefCountWasZero(id anObject)
|
||||||
--(node->value.uint);
|
--(node->value.uint);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
return NO;
|
return NO;
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "GSURLPrivate.h"
|
#include "GSURLPrivate.h"
|
||||||
|
#include "Foundation/NSError.h"
|
||||||
|
|
||||||
|
|
||||||
// Internal data storage
|
// Internal data storage
|
||||||
|
|
Loading…
Reference in a new issue