These are to keep Coverity happy. In one case remove a redundant NULL
check, and in another explicitly ignore a function result that is already
known.
location = exprLocation(expr);
if (location < 0)
- location = returning ? returning->format->location : -1;
+ location = returning->format->location;
/* special case for RETURNING bytea FORMAT json */
if (returning->format->format_type == JS_FORMAT_JSON &&
{
JsonbValue v;
- JsonbExtractScalar(&jb->root, &v);
+ (void) JsonbExtractScalar(&jb->root, &v);
if (v.type == jbvString)
return pnstrdup(v.val.string.val, v.val.string.len);