Re: compiler warning read_objtype_from_string() - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: compiler warning read_objtype_from_string()
Date
Msg-id 20160928220953.GA369472@alvherre.pgsql
Whole thread Raw
In response to Re: compiler warning read_objtype_from_string()  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:

> I do not think you should assume that the compiler is smart enough to
> deduce that, nor that all compilers even know ereport(ERROR) doesn't
> return.  Personally I don't see the point of the "type" variable at
> all, anyway.  I would have written this as
> 
> [code]

Makes sense.  I will patch it that way.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Set log_line_prefix and application name in test drivers
Next
From: Robert Haas
Date:
Subject: Re: Set log_line_prefix and application name in test drivers