From: Peter Eisentraut Date: Wed, 5 Feb 2014 01:04:35 +0000 (-0500) Subject: PL/Perl: Fix compiler warning X-Git-Tag: REL9_4_BETA1~532 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4e182361804f8688cef953c998e24134e606aea4;p=thirdparty%2Fpostgresql.git 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. --- 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; /*