mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
avoid spurious compiler warnings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23027 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8398e8a74c
commit
087e9db5e6
27 changed files with 105 additions and 22 deletions
30
ChangeLog
30
ChangeLog
|
@ -1,3 +1,33 @@
|
|||
2006-06-04 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSIndexPath.m:
|
||||
* Source/NSSocketPortNameServer.m:
|
||||
* Source/NSTimeZone.m:
|
||||
* Source/NSPortCoder.m:
|
||||
* Source/NSDistributedNotificationCenter.m:
|
||||
* Source/NSAttributedString.m:
|
||||
* Source/GSArray.m:
|
||||
* Source/NSKeyedArchiver.m:
|
||||
* Source/NSKeyedUnarchiver.m:
|
||||
* Source/NSKeyValueObserving.m:
|
||||
* Source/NSUnarchiver.m:
|
||||
* Source/GSAttributedString.m:
|
||||
* Source/Additions/GCArray.m:
|
||||
* Source/Additions/GCDictionary.m:
|
||||
* Source/Additions/GCObject.m:
|
||||
* Source/NSNumber.m:
|
||||
* Source/GSString.m:
|
||||
* Source/NSConnection.m:
|
||||
* Source/NSAutoreleasePool.m:
|
||||
* Source/NSThread.m:
|
||||
* Source/NSData.m:
|
||||
* Source/NSDate.m:
|
||||
* Source/NSNull.m:
|
||||
* Source/NSValue.m:
|
||||
* Source/NSPortNameServer.m:
|
||||
* Headers/Additions/GNUstepBase/preface.h.in:
|
||||
Fixups to avoid spurious compiler warnings.
|
||||
|
||||
2006-06-02 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/GSHTTPURLHandle.m: Fix uninitialised variable problem.
|
||||
|
|
|
@ -18,7 +18,8 @@
|
|||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02111 USA.
|
||||
*/
|
||||
|
||||
#ifndef __preface_h_OBJECTS_INCLUDE
|
||||
|
@ -164,5 +165,9 @@ extern const char o_NeXT_cc_version[];
|
|||
#define VASPRINTF_LENGTH(VASPF_CALL) strlen((VASPF_CALL))
|
||||
#endif /* VSPRINTF_RETURNS_LENGTH */
|
||||
|
||||
/* Evil hack to stop gcc-4.1 complaining about a dealloc method which
|
||||
* does not call the superclass implementation.
|
||||
*/
|
||||
#define GSNOSUPERDEALLOC if (0) [super dealloc]
|
||||
|
||||
#endif /* __preface_h_OBJECTS_INCLUDE */
|
||||
|
|
|
@ -19,7 +19,8 @@
|
|||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02111 USA.
|
||||
|
||||
*/
|
||||
|
||||
|
|
|
@ -19,7 +19,8 @@
|
|||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02111 USA.
|
||||
|
||||
*/
|
||||
|
||||
|
|
|
@ -19,7 +19,8 @@
|
|||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02111 USA.
|
||||
|
||||
AutogsdocSource: Additions/GCObject.m
|
||||
AutogsdocSource: Additions/GCArray.m
|
||||
|
@ -49,6 +50,7 @@
|
|||
@implementation _GCObjectList
|
||||
- (void) dealloc
|
||||
{
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
@end
|
||||
|
||||
|
|
|
@ -147,6 +147,7 @@ static Class GSInlineArrayClass;
|
|||
NSZoneFree([self zone], _contents_array);
|
||||
}
|
||||
NSDeallocateObject(self);
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
|
||||
- (id) init
|
||||
|
@ -388,6 +389,7 @@ static Class GSInlineArrayClass;
|
|||
#endif
|
||||
}
|
||||
NSDeallocateObject(self);
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
- (id) init
|
||||
{
|
||||
|
@ -865,6 +867,7 @@ static Class GSInlineArrayClass;
|
|||
{
|
||||
RELEASE(array);
|
||||
NSDeallocateObject(self);
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
|
||||
@end
|
||||
|
@ -1027,7 +1030,7 @@ static Class GSInlineArrayClass;
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
return; // placeholders never get deallocated.
|
||||
GSNOSUPERDEALLOC; // placeholders never get deallocated.
|
||||
}
|
||||
|
||||
- (id) init
|
||||
|
|
|
@ -27,7 +27,8 @@
|
|||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02111 USA.
|
||||
*/
|
||||
|
||||
/* Warning - [-initWithString:attributes:] is the designated initialiser,
|
||||
|
@ -203,6 +204,7 @@ unCacheAttributes(NSDictionary *attrs)
|
|||
{
|
||||
[self gcFinalize];
|
||||
NSDeallocateObject(self);
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
|
||||
- (NSString*) description
|
||||
|
|
|
@ -328,7 +328,7 @@ setup(void)
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
return; // Placeholders never get deallocated.
|
||||
GSNOSUPERDEALLOC; // Placeholders never get deallocated.
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -2606,6 +2606,7 @@ transmute(GSStr self, NSString *aString)
|
|||
- (void) dealloc
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
|
||||
- (id) initWithBytes: (const void*)chars
|
||||
|
@ -2960,6 +2961,7 @@ agree, create a new GSCInlineString otherwise.
|
|||
_contents.c = 0;
|
||||
}
|
||||
NSDeallocateObject(self);
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
@end
|
||||
|
||||
|
@ -2969,6 +2971,7 @@ agree, create a new GSCInlineString otherwise.
|
|||
- (void) dealloc
|
||||
{
|
||||
NSDeallocateObject(self);
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
@end
|
||||
|
||||
|
@ -2998,6 +3001,7 @@ agree, create a new GSCInlineString otherwise.
|
|||
{
|
||||
DESTROY(_parent);
|
||||
NSDeallocateObject(self);
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
@end
|
||||
|
||||
|
@ -3271,6 +3275,7 @@ agree, create a new GSUnicodeInlineString otherwise.
|
|||
_contents.u = 0;
|
||||
}
|
||||
NSDeallocateObject(self);
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
@end
|
||||
|
||||
|
@ -3280,6 +3285,7 @@ agree, create a new GSUnicodeInlineString otherwise.
|
|||
- (void) dealloc
|
||||
{
|
||||
NSDeallocateObject(self);
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
@end
|
||||
|
||||
|
@ -3310,6 +3316,7 @@ agree, create a new GSUnicodeInlineString otherwise.
|
|||
{
|
||||
DESTROY(_parent);
|
||||
NSDeallocateObject(self);
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
@end
|
||||
|
||||
|
@ -3482,6 +3489,7 @@ agree, create a new GSUnicodeInlineString otherwise.
|
|||
self->_zone = 0;
|
||||
}
|
||||
NSDeallocateObject(self);
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
|
||||
- (void) deleteCharactersInRange: (NSRange)range
|
||||
|
@ -4679,6 +4687,7 @@ agree, create a new GSUnicodeInlineString otherwise.
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
|
||||
- (const char*) cString
|
||||
|
|
|
@ -27,7 +27,8 @@
|
|||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02111 USA.
|
||||
|
||||
<title>NSAttributedString class reference</title>
|
||||
$Date$ $Revision$
|
||||
|
@ -975,6 +976,7 @@ static Class GSMutableAttributedStringClass;
|
|||
{
|
||||
RELEASE(_owner);
|
||||
NSDeallocateObject(self);
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
|
||||
- (unsigned int) length
|
||||
|
|
|
@ -19,7 +19,8 @@
|
|||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02111 USA.
|
||||
|
||||
<title>NSAutoreleasePool class reference</title>
|
||||
$Date$ $Revision$
|
||||
|
@ -400,6 +401,7 @@ static IMP initImp;
|
|||
|
||||
/* Don't deallocate ourself, just save us for later use. */
|
||||
push_pool_to_cache (tv, self);
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
|
||||
- (void) emptyPool
|
||||
|
|
|
@ -22,7 +22,8 @@
|
|||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02111 USA.
|
||||
|
||||
<title>NSConnection class reference</title>
|
||||
$Date$ $Revision$
|
||||
|
@ -189,6 +190,7 @@ stringFromMsgType(int type)
|
|||
{
|
||||
RELEASE(obj);
|
||||
NSDeallocateObject(self);
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
|
||||
- (BOOL) countdown
|
||||
|
|
|
@ -20,7 +20,8 @@
|
|||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02111 USA.
|
||||
|
||||
<title>NSData class reference</title>
|
||||
$Date$ $Revision$
|
||||
|
@ -2799,6 +2800,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
@implementation NSDataEmpty
|
||||
- (void) dealloc
|
||||
{
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
@end
|
||||
|
||||
|
|
|
@ -20,7 +20,8 @@
|
|||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02111 USA.
|
||||
|
||||
<title>NSDate class reference</title>
|
||||
$Date$ $Revision$
|
||||
|
@ -1506,6 +1507,7 @@ otherTime(NSDate* other)
|
|||
{
|
||||
[NSException raise: NSInternalInconsistencyException
|
||||
format: @"Attempt to deallocate fixed date"];
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
|
||||
- (id) initWithTimeIntervalSinceReferenceDate: (NSTimeInterval)secs
|
||||
|
|
|
@ -18,7 +18,8 @@
|
|||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02111 USA.
|
||||
|
||||
<title>NSDistributedNotificationCenter class reference</title>
|
||||
$Date$ $Revision$
|
||||
|
@ -236,6 +237,7 @@ static NSDistributedNotificationCenter *netCenter = nil;
|
|||
RELEASE(_remote);
|
||||
RELEASE(_type);
|
||||
NSDeallocateObject(self);
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -124,6 +124,7 @@ static NSIndexPath *dummy = nil;
|
|||
NSZoneFree(NSDefaultMallocZone(), _indexes);
|
||||
NSDeallocateObject(self);
|
||||
}
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
|
||||
- (NSString*)description
|
||||
|
|
|
@ -18,7 +18,8 @@
|
|||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02111 USA.
|
||||
|
||||
$Date$ $Revision$
|
||||
*/
|
||||
|
@ -126,6 +127,7 @@ static Class baseClass;
|
|||
[self setObservationInfo: nil];
|
||||
isa = [self class];
|
||||
[self dealloc];
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
|
||||
- (Class) class
|
||||
|
|
|
@ -18,7 +18,8 @@
|
|||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02111 USA.
|
||||
|
||||
*/
|
||||
|
||||
|
|
|
@ -18,7 +18,8 @@
|
|||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02111 USA.
|
||||
|
||||
*/
|
||||
|
||||
|
|
|
@ -78,6 +78,7 @@ static NSNull *null = 0;
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
|
||||
- (void) encodeWithCoder: (NSCoder*)aCoder
|
||||
|
|
|
@ -21,7 +21,8 @@
|
|||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02111 USA.
|
||||
|
||||
<title>NSNumber class reference</title>
|
||||
$Date$ $Revision$
|
||||
|
@ -54,6 +55,7 @@
|
|||
{
|
||||
[NSException raise: NSGenericException
|
||||
format: @"Attempt to deallocate bool number owned by cache"];
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
@end
|
||||
@implementation GSCachedInt
|
||||
|
@ -65,6 +67,7 @@
|
|||
{
|
||||
[NSException raise: NSGenericException
|
||||
format: @"Attempt to deallocate int number owned by cache"];
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
@end
|
||||
|
||||
|
|
|
@ -26,7 +26,8 @@
|
|||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02111 USA.
|
||||
|
||||
<title>NSPortCoder class reference</title>
|
||||
$Date$ $Revision$
|
||||
|
@ -302,6 +303,7 @@ typeCheck(char t1, char t2)
|
|||
{
|
||||
TEST_RELEASE(name);
|
||||
NSDeallocateObject(self);
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
@end
|
||||
|
||||
|
|
|
@ -101,6 +101,7 @@
|
|||
{
|
||||
[NSException raise: NSGenericException
|
||||
format: @"attempt to deallocate default port name server"];
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -592,6 +592,7 @@ typedef enum {
|
|||
{
|
||||
[NSException raise: NSGenericException
|
||||
format: @"attempt to deallocate default port name server"];
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
|
||||
- (BOOL) _lookupName: (NSString*)name onHost: (NSString*)host
|
||||
|
|
|
@ -24,7 +24,8 @@
|
|||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02111 USA.
|
||||
|
||||
<title>NSThread class reference</title>
|
||||
$Date$ $Revision$
|
||||
|
@ -731,6 +732,7 @@ gnustep_base_thread_callback(void)
|
|||
defaultThread = nil;
|
||||
}
|
||||
NSDeallocateObject(self);
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
|
||||
- (id) init
|
||||
|
@ -955,6 +957,7 @@ static NSDate *theFuture;
|
|||
lock = nil;
|
||||
}
|
||||
NSDeallocateObject(self);
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
|
||||
- (void) fire
|
||||
|
|
|
@ -333,7 +333,7 @@ static NSString *_time_zone_path(NSString *subpath, NSString *type)
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
return; // placeholders never get deallocated.
|
||||
GSNOSUPERDEALLOC; // placeholders never get deallocated.
|
||||
}
|
||||
|
||||
- (id) initWithName: (NSString*)name data: (NSData*)data
|
||||
|
|
|
@ -18,7 +18,8 @@
|
|||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02111 USA.
|
||||
|
||||
<title>NSUnarchiver class reference</title>
|
||||
$Date$ $Revision$
|
||||
|
@ -263,6 +264,7 @@ static SEL dValSel;
|
|||
RELEASE(name);
|
||||
}
|
||||
NSDeallocateObject(self);
|
||||
GSNOSUPERDEALLOC;
|
||||
}
|
||||
- (void) mapToClass: (Class)c withName: (NSString*)n
|
||||
{
|
||||
|
|
|
@ -597,7 +597,7 @@ static NSLock *placeholderLock;
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
return; // placeholders never get deallocated.
|
||||
GSNOSUPERDEALLOC; // placeholders never get deallocated.
|
||||
}
|
||||
|
||||
- (void) getData: (void*)data
|
||||
|
|
Loading…
Reference in a new issue