On 24 December 2014 at 07:41, Alvaro Herrera <alvhe...@2ndquadrant.com>
wrote:

> I have pushed patches 0001 through 0004, with some revisions.  Only the
> final part is missing.
>
>
Hi Alvaro,

Would you be able to commit the attached? It just fixes a new compiler
warning that I'm seeing on MSVC.

src\backend\parser\parse_type.c(795): warning C4715: 'typeStringToTypeName'
: not all control paths return a value [D:\Postgres\a\postgres.vcxproj]

Kind Regards

David Rowley
diff --git a/src/backend/parser/parse_type.c b/src/backend/parser/parse_type.c
index 299cc53..4ab7fe5 100644
--- a/src/backend/parser/parse_type.c
+++ b/src/backend/parser/parse_type.c
@@ -792,6 +792,7 @@ fail:
        ereport(ERROR,
                        (errcode(ERRCODE_SYNTAX_ERROR),
                         errmsg("invalid type name \"%s\"", str)));
+       return NULL; /* keep compiler quiet */
 }
 
 /*
-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to