Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 905404a

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

File tree

1 file changed

+4
-4
lines changed
Filter options

1 file changed

+4
-4
lines changed

‎src/backend/tcop/utility.c

Copy file name to clipboardExpand all lines: src/backend/tcop/utility.c
+4-4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.