From 4e182361804f8688cef953c998e24134e606aea4 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 4 Feb 2014 20:04:35 -0500 Subject: [PATCH] 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. --- src/pl/plperl/plperl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pl/plperl/plperl.c b/src/pl/plperl/plperl.c index a81c18513e..d9aa5efa32 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; /*