Skip to content

Commit 7340793

Browse files
committed
Silence a gcc compiler warning about non-literal format string with no args
when compiling with -Wformat-security. Fujii Masao.
1 parent 5e4c8ae commit 7340793

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/commands/tablecmds.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.284 2009/05/12 03:11:01 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.285 2009/05/20 08:48:10 heikki Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -606,7 +606,7 @@ DropErrorMsgWrongType(const char *relname, char wrongkind, char rightkind)
606606
ereport(ERROR,
607607
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
608608
errmsg(rentry->nota_msg, relname),
609-
(wentry->kind != '\0') ? errhint(wentry->drophint_msg) : 0));
609+
(wentry->kind != '\0') ? errhint("%s", _(wentry->drophint_msg)) : 0));
610610
}
611611

612612
/*

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