Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ac2b404

Browse filesBrowse 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
Copy full SHA for ac2b404

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎jsquery_op.c

Copy file name to clipboardExpand all lines: jsquery_op.c
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.