aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2014-02-04 20:04:35 -0500
committerPeter Eisentraut <peter_e@gmx.net>2014-02-04 20:08:39 -0500
commit4e182361804f8688cef953c998e24134e606aea4 (patch)
tree670c364972d1872b0c94b0711016086f300dd467 /src
parent00d4f2af8bd6a1b9db2f676cc76b64d98ace99fb (diff)
downloadpostgresql-4e182361804f8688cef953c998e24134e606aea4.tar.gz
postgresql-4e182361804f8688cef953c998e24134e606aea4.zip
PL/Perl: Fix compiler warning
The code was assigning a (Datum) 0 to a void pointer. That creates a warning from clang 3.4. It was probably a thinko to begin with.
Diffstat (limited to 'src')
-rw-r--r--src/pl/plperl/plperl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pl/plperl/plperl.c b/src/pl/plperl/plperl.c
index a81c18513e5..d9aa5efa324 100644
--- a/src/pl/plperl/plperl.c
+++ b/src/pl/plperl/plperl.c
@@ -1786,7 +1786,7 @@ plperl_inline_handler(PG_FUNCTION_ARGS)
/* Set up a callback for error reporting */
pl_error_context.callback = plperl_inline_callback;
pl_error_context.previous = error_context_stack;
- pl_error_context.arg = (Datum) 0;
+ pl_error_context.arg = NULL;
error_context_stack = &pl_error_context;
/*