From 5108aa771afe70103be4ad6b3c2bde6b29ab5c72 Mon Sep 17 00:00:00 2001 From: rfm Date: Sun, 4 Jun 2006 09:19:28 +0000 Subject: [PATCH] Avoid compiler warnings. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@23028 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 4 ++++ Postgres.m | 2 +- SQLClient.m | 5 ----- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index c0bae55..76e1643 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-06-04 Richard Frith-Macdonald + + * SQLClient.m: avoid useless compiler warnings. + 2005-05-25 Richard Frith-Macdonald * configure.ac: Check for new postgres string escaping diff --git a/Postgres.m b/Postgres.m index 8c66217..7847246 100644 --- a/Postgres.m +++ b/Postgres.m @@ -839,7 +839,7 @@ static unsigned int trim(char *str) int err; [self backendConnect]; - l = PQescapeStringConn(connection, to + 1, [d bytes], l, &err); + l = PQescapeStringConn(connection, (char*)(to + 1), [d bytes], l, &err); #else l = PQescapeString(to + 1, [d bytes], l); #endif diff --git a/SQLClient.m b/SQLClient.m index 4ff03ac..9657a22 100644 --- a/SQLClient.m +++ b/SQLClient.m @@ -133,12 +133,7 @@ static Class NSSetClass = 0; DESTROY(ptr[pos]); DESTROY(ptr[count + pos]); } - NSDeallocateObject(self); -#ifndef GNUSTEP - // Avoid bogus compiler warning about missing call to super implementation. - self = nil; [super dealloc]; -#endif } - (NSMutableDictionary*) dictionary