Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit905404a

Browse files
committed
Remove gcc warnings. The Postgres world isn't really safe
for 'const' qualifiers yet ...
1 parent3cbcb78 commit905404a

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
caseINDEX:
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
caseTABLE:
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
caseDATABASE:
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)

[8]ページ先頭

©2009-2025 Movatter.jp