Content-Length: 282357 | pFad | http://github.com/postgrespro/postgres_cluster/commit/e709ced1536d1ed34d96633ea7c319a3a2a2751c

E1 Silence compiler warnings in new jsonb code. · postgrespro/postgres_cluster@e709ced · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/e709ced1536d1ed34d96633ea7c319a3a2a2751c

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy