diff options
author | Peter Eisentraut | 2011-01-26 22:18:10 +0000 |
---|---|---|
committer | Peter Eisentraut | 2011-01-26 22:19:15 +0000 |
commit | ddf8c1682237119bf66949050e223c2151329f4c (patch) | |
tree | 7cb61aa15c514f31719e23d3106924f34a7719d1 /src/pl/plpython/plpython.c | |
parent | 4fec63f94e8edb6181eb3e1e25e979062ab17450 (diff) |
Fix compiler warnings
Older versions of GCC appear to report these with the current standard
option set, newer versions need -Wformat-security.
Diffstat (limited to 'src/pl/plpython/plpython.c')
-rw-r--r-- | src/pl/plpython/plpython.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pl/plpython/plpython.c b/src/pl/plpython/plpython.c index 1a111727d99..0b75fe6136f 100644 --- a/src/pl/plpython/plpython.c +++ b/src/pl/plpython/plpython.c @@ -3465,7 +3465,7 @@ PLy_output(volatile int level, PyObject *self, PyObject *args) Py_XDECREF(so); /* Make Python raise the exception */ - PLy_exception_set(PLy_exc_error, edata->message); + PLy_exception_set(PLy_exc_error, "%s", edata->message); return NULL; } PG_END_TRY(); @@ -3620,13 +3620,13 @@ PLy_elog(int elevel, const char *fmt,...) ereport(elevel, (errmsg("PL/Python: %s", emsg.data), (xmsg) ? errdetail("%s", xmsg) : 0, - (hint) ? errhint(hint) : 0, + (hint) ? errhint("%s", hint) : 0, (query) ? internalerrquery(query) : 0, (position) ? internalerrposition(position) : 0)); else ereport(elevel, (errmsg("PL/Python: %s", xmsg), - (hint) ? errhint(hint) : 0, + (hint) ? errhint("%s", hint) : 0, (query) ? internalerrquery(query) : 0, (position) ? internalerrposition(position) : 0)); } |