From ebe0afc55d38582feaf217f646f986e5f4d6df6f Mon Sep 17 00:00:00 2001 From: rfm Date: Mon, 5 Mar 2007 16:02:25 +0000 Subject: [PATCH] avoid some compiler warnings git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24765 72102866-910b-0410-8b05-ffd578937521 --- Source/NSObject.m | 12 +++++------- Source/NSURLAuthenticationChallenge.m | 1 + 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Source/NSObject.m b/Source/NSObject.m index ba91bb7ed..ee9504755 100644 --- a/Source/NSObject.m +++ b/Source/NSObject.m @@ -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 } /** diff --git a/Source/NSURLAuthenticationChallenge.m b/Source/NSURLAuthenticationChallenge.m index 901b75c6b..b7ae4e432 100644 --- a/Source/NSURLAuthenticationChallenge.m +++ b/Source/NSURLAuthenticationChallenge.m @@ -23,6 +23,7 @@ */ #include "GSURLPrivate.h" +#include "Foundation/NSError.h" // Internal data storage