From 8ab27affeaf5ebf9c735e87e0878c50a52eaf507 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 18 Jan 2010 22:19:34 +0000 Subject: [PATCH] Cast slightly abused enum to int, so that GCC 4.5 won't warn about switch cases that are not part of the enum's definition. --- src/backend/nodes/read.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/nodes/read.c b/src/backend/nodes/read.c index 7dc443beea..482bd18fbc 100644 --- a/src/backend/nodes/read.c +++ b/src/backend/nodes/read.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/nodes/read.c,v 1.53 2010/01/02 16:57:46 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/nodes/read.c,v 1.54 2010/01/18 22:19:34 petere Exp $ * * HISTORY * AUTHOR DATE MAJOR EVENT @@ -289,7 +289,7 @@ nodeRead(char *token, int tok_len) type = nodeTokenType(token, tok_len); - switch (type) + switch ((int) type) { case LEFT_BRACE: result = parseNodeString(); -- 2.40.0