Avoid compiler warnings.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@23028 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2006-06-04 09:19:28 +00:00
parent d949d70f44
commit 5108aa771a
3 changed files with 5 additions and 6 deletions

View file

@ -1,3 +1,7 @@
2005-06-04 Richard Frith-Macdonald <rfm@gnu.org>
* SQLClient.m: avoid useless compiler warnings.
2005-05-25 Richard Frith-Macdonald <rfm@gnu.org> 2005-05-25 Richard Frith-Macdonald <rfm@gnu.org>
* configure.ac: Check for new postgres string escaping * configure.ac: Check for new postgres string escaping

View file

@ -839,7 +839,7 @@ static unsigned int trim(char *str)
int err; int err;
[self backendConnect]; [self backendConnect];
l = PQescapeStringConn(connection, to + 1, [d bytes], l, &err); l = PQescapeStringConn(connection, (char*)(to + 1), [d bytes], l, &err);
#else #else
l = PQescapeString(to + 1, [d bytes], l); l = PQescapeString(to + 1, [d bytes], l);
#endif #endif

View file

@ -133,12 +133,7 @@ static Class NSSetClass = 0;
DESTROY(ptr[pos]); DESTROY(ptr[pos]);
DESTROY(ptr[count + pos]); DESTROY(ptr[count + pos]);
} }
NSDeallocateObject(self);
#ifndef GNUSTEP
// Avoid bogus compiler warning about missing call to super implementation.
self = nil;
[super dealloc]; [super dealloc];
#endif
} }
- (NSMutableDictionary*) dictionary - (NSMutableDictionary*) dictionary