OSDN Git Service
(root)
/
pg-rex
/
syncrep.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efb224a
)
Remove unused variable
author
Peter Eisentraut
<peter_e@gmx.net>
Tue, 14 Jun 2011 20:00:43 +0000
(23:00 +0300)
committer
Peter Eisentraut
<peter_e@gmx.net>
Tue, 14 Jun 2011 20:00:43 +0000
(23:00 +0300)
The variable became obsolete in commit
68739ba856c52e6721d6cffec21f1bf0327a9a7b
, but only gcc 4.6 shows the
warning.
src/backend/parser/parse_utilcmd.c
patch
|
blob
|
history
diff --git
a/src/backend/parser/parse_utilcmd.c
b/src/backend/parser/parse_utilcmd.c
index
efb8fdd
..
485bf4b
100644
(file)
--- a/
src/backend/parser/parse_utilcmd.c
+++ b/
src/backend/parser/parse_utilcmd.c
@@
-845,7
+845,6
@@
static void
transformOfType(CreateStmtContext *cxt, TypeName *ofTypename)
{
HeapTuple tuple;
- Form_pg_type typ;
TupleDesc tupdesc;
int i;
Oid ofTypeId;
@@
-854,7
+853,6
@@
transformOfType(CreateStmtContext *cxt, TypeName *ofTypename)
tuple = typenameType(NULL, ofTypename, NULL);
check_of_type(tuple);
- typ = (Form_pg_type) GETSTRUCT(tuple);
ofTypeId = HeapTupleGetOid(tuple);
ofTypename->typeOid = ofTypeId; /* cached for later */