Skip to content

Commit e37d474

Browse files
committed
Silence Coverity warnings about unused return values from pushJsonbValue()
Similar warnings from backend were silenced earlier by commit c831593, but there were a few more contrib/hstore. Michael Paquier
1 parent 14e8803 commit e37d474

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

contrib/hstore/hstore_io.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,7 +1338,7 @@ hstore_to_jsonb(PG_FUNCTION_ARGS)
13381338
JsonbParseState *state = NULL;
13391339
JsonbValue *res;
13401340

1341-
res = pushJsonbValue(&state, WJB_BEGIN_OBJECT, NULL);
1341+
(void) pushJsonbValue(&state, WJB_BEGIN_OBJECT, NULL);
13421342

13431343
for (i = 0; i < count; i++)
13441344
{
@@ -1349,7 +1349,7 @@ hstore_to_jsonb(PG_FUNCTION_ARGS)
13491349
key.val.string.len = HS_KEYLEN(entries, i);
13501350
key.val.string.val = HS_KEY(entries, base, i);
13511351

1352-
res = pushJsonbValue(&state, WJB_KEY, &key);
1352+
(void) pushJsonbValue(&state, WJB_KEY, &key);
13531353

13541354
if (HS_VALISNULL(entries, i))
13551355
{
@@ -1361,7 +1361,7 @@ hstore_to_jsonb(PG_FUNCTION_ARGS)
13611361
val.val.string.len = HS_VALLEN(entries, i);
13621362
val.val.string.val = HS_VAL(entries, base, i);
13631363
}
1364-
res = pushJsonbValue(&state, WJB_VALUE, &val);
1364+
(void) pushJsonbValue(&state, WJB_VALUE, &val);
13651365
}
13661366

13671367
res = pushJsonbValue(&state, WJB_END_OBJECT, NULL);
@@ -1385,7 +1385,7 @@ hstore_to_jsonb_loose(PG_FUNCTION_ARGS)
13851385

13861386
initStringInfo(&tmp);
13871387

1388-
res = pushJsonbValue(&state, WJB_BEGIN_OBJECT, NULL);
1388+
(void) pushJsonbValue(&state, WJB_BEGIN_OBJECT, NULL);
13891389

13901390
for (i = 0; i < count; i++)
13911391
{
@@ -1396,7 +1396,7 @@ hstore_to_jsonb_loose(PG_FUNCTION_ARGS)
13961396
key.val.string.len = HS_KEYLEN(entries, i);
13971397
key.val.string.val = HS_KEY(entries, base, i);
13981398

1399-
res = pushJsonbValue(&state, WJB_KEY, &key);
1399+
(void) pushJsonbValue(&state, WJB_KEY, &key);
14001400

14011401
if (HS_VALISNULL(entries, i))
14021402
{
@@ -1471,7 +1471,7 @@ hstore_to_jsonb_loose(PG_FUNCTION_ARGS)
14711471
val.val.string.val = HS_VAL(entries, base, i);
14721472
}
14731473
}
1474-
res = pushJsonbValue(&state, WJB_VALUE, &val);
1474+
(void) pushJsonbValue(&state, WJB_VALUE, &val);
14751475
}
14761476

14771477
res = pushJsonbValue(&state, WJB_END_OBJECT, NULL);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy