Re: to_ascii() - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: to_ascii()
Date
Msg-id 200008051552.LAA21999@candle.pha.pa.us
Whole thread Raw
In response to Re: to_ascii()  (Karel Zak <zakkr@zf.jcu.cz>)
List pgsql-patches
>
> On Sat, 5 Aug 2000, Bruce Momjian wrote:
>
> > I see the following warnings in a gcc compile with -Wall:
> >
> > ascii.c: In function `to_ascii_encname':
> > ascii.c:41: warning: control reaches end of non-void function
> > ascii.c: In function `to_ascii_enc':
> > ascii.c:47: warning: control reaches end of non-void function
> > ascii.c: In function `to_ascii_default':
> > ascii.c:53: warning: control reaches end of non-void function
> >
>
>  Grrr..... it's really bad day for me.
>
>  Please, ignore this warning now. I will work on to_char() and this
> I resolve too. It's pedantic warning from a gcc, these functions
> always end with elog(ERROR..) and not with some return. But a gcc
> don't knows it :-(
>
> (or you can add "return (Datum) NULL;" to these three lines if you don't
> want wait for me next patch).
>

No problem.  Just sent along when you are ready.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-patches by date:

Previous
From: Karel Zak
Date:
Subject: Re: to_ascii()
Next
From: Karel Zak
Date:
Subject: to_char's ISO week