Skip to content

Commit e709ced

Browse files
committed
Silence compiler warnings in new jsonb code.
Amit Kapila.
1 parent f3cfc23 commit e709ced

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/backend/utils/adt/jsonb_util.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,7 @@ JsonbIteratorNext(JsonbIterator ** it, JsonbValue * val, bool skipNested)
799799
}
800800

801801
elog(ERROR, "invalid iterator state");
802+
return -1;
802803
}
803804

804805
/*
@@ -1039,6 +1040,7 @@ JsonbDeepContains(JsonbIterator ** val, JsonbIterator ** mContained)
10391040
}
10401041

10411042
elog(ERROR, "unexpectedly fell off end of jsonb container");
1043+
return false;
10421044
}
10431045

10441046
/*
@@ -1172,6 +1174,7 @@ compareJsonbScalarValue(JsonbValue * aScalar, JsonbValue * bScalar)
11721174
}
11731175
}
11741176
elog(ERROR, "jsonb scalar type mismatch");
1177+
return -1;
11751178
}
11761179

11771180
/*

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