From 8ff2bccee31a7be12f653bc533b3e76c052534f8 Mon Sep 17 00:00:00 2001 From: Neil Conway Date: Fri, 26 Jan 2007 17:45:42 +0000 Subject: Squelch some VC++ compiler warnings. Mark float literals with the "f" suffix, to distinguish them from doubles. Make some function declarations and definitions use the "const" qualifier for arguments consistently. Ignore warning 4102 ("unreferenced label"), because such warnings are always emitted by bison-generated code. Patch from Magnus Hagander. --- src/timezone/ialloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/timezone/ialloc.c') diff --git a/src/timezone/ialloc.c b/src/timezone/ialloc.c index 547a786e34d..2b4dc17b3bd 100644 --- a/src/timezone/ialloc.c +++ b/src/timezone/ialloc.c @@ -3,7 +3,7 @@ * 1996-06-05 by Arthur David Olson (arthur_david_olson@nih.gov). * * IDENTIFICATION - * $PostgreSQL: pgsql/src/timezone/ialloc.c,v 1.7 2005/10/15 02:49:51 momjian Exp $ + * $PostgreSQL: pgsql/src/timezone/ialloc.c,v 1.8 2007/01/26 17:45:42 neilc Exp $ */ #include "postgres.h" @@ -14,7 +14,7 @@ #define nonzero(n) (((n) == 0) ? 1 : (n)) char * -imalloc(const int n) +imalloc(int n) { return malloc((size_t) nonzero(n)); } @@ -28,7 +28,7 @@ icalloc(int nelem, int elsize) } void * -irealloc(void *pointer, const int size) +irealloc(void *pointer, int size) { if (pointer == NULL) return imalloc(size); -- cgit v1.2.3