Content-Length: 273253 | pFad | http://github.com/postgrespro/postgres/commit/8ab27affeaf5ebf9c735e87e0878c50a52eaf507

D2 Cast slightly abused enum to int, so that GCC 4.5 won't warn about sw… · postgrespro/postgres@8ab27af · GitHub
Skip to content

Commit 8ab27af

Browse files
committed
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.
1 parent a49147a commit 8ab27af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/nodes/read.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/backend/nodes/read.c,v 1.53 2010/01/02 16:57:46 momjian Exp $
12+
* $PostgreSQL: pgsql/src/backend/nodes/read.c,v 1.54 2010/01/18 22:19:34 petere Exp $
1313
*
1414
* HISTORY
1515
* AUTHOR DATE MAJOR EVENT
@@ -289,7 +289,7 @@ nodeRead(char *token, int tok_len)
289289

290290
type = nodeTokenType(token, tok_len);
291291

292-
switch (type)
292+
switch ((int) type)
293293
{
294294
case LEFT_BRACE:
295295
result = parseNodeString();

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/8ab27affeaf5ebf9c735e87e0878c50a52eaf507

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy