Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ac2b404

Browse files
committed
[PGPRO-5310] Mark variables used for assert only as such
So, they would not cause warnings when build with --disable-cassert instide contrib tree
1 parent 462e2b9 commit ac2b404

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jsquery_op.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ recursiveExecute(JsQueryItem *jsq, JsonbValue *jb, JsQueryItem *jsqLeftArg,
542542
else if (JsonbType(jb) == jbvScalar)
543543
{
544544
JsonbIterator *it;
545-
int32 r;
545+
int32 r PG_USED_FOR_ASSERTS_ONLY;
546546
JsonbValue v;
547547

548548
it = JsonbIteratorInit(jb->val.binary.data);
@@ -729,7 +729,7 @@ recursiveExecute(JsQueryItem *jsq, JsonbValue *jb, JsQueryItem *jsqLeftArg,
729729
if (JsonbType(jb) == jbvScalar)
730730
{
731731
JsonbIterator *it;
732-
int32 r;
732+
int32 r PG_USED_FOR_ASSERTS_ONLY;
733733
JsonbValue v;
734734

735735
it = JsonbIteratorInit(jb->val.binary.data);

0 commit comments

Comments
 (0)