Skip to content

Commit 905404a

Browse files
committed
Remove gcc warnings. The Postgres world isn't really safe
for 'const' qualifiers yet ...
1 parent 3cbcb78 commit 905404a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/tcop/utility.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.83 2000/02/18 09:29:31 inoue Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.84 2000/02/19 02:29:07 tgl Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -856,7 +856,7 @@ ProcessUtility(Node *parsetree,
856856
switch (stmt->reindexType)
857857
{
858858
case INDEX:
859-
relname = stmt->name;
859+
relname = (char*) stmt->name;
860860
if (IsSystemRelationName(relname))
861861
{
862862
if (!allowSystemTableMods && IsSystemRelationName(relname))
@@ -873,7 +873,7 @@ ProcessUtility(Node *parsetree,
873873
ReindexIndex(relname, stmt->force);
874874
break;
875875
case TABLE:
876-
relname = stmt->name;
876+
relname = (char*) stmt->name;
877877
if (IsSystemRelationName(relname))
878878
{
879879
if (!allowSystemTableMods && IsSystemRelationName(relname))
@@ -890,7 +890,7 @@ ProcessUtility(Node *parsetree,
890890
ReindexTable(relname, stmt->force);
891891
break;
892892
case DATABASE:
893-
relname = stmt->name;
893+
relname = (char*) stmt->name;
894894
if (!allowSystemTableMods)
895895
elog(ERROR, "-O option is needed");
896896
if (!IsIgnoringSystemIndexes())

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy