projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3cfc23
)
Silence compiler warnings in new jsonb code.
author
Heikki Linnakangas
Thu, 27 Mar 2014 06:53:44 +0000
(08:53 +0200)
committer
Heikki Linnakangas
Thu, 27 Mar 2014 06:53:44 +0000
(08:53 +0200)
Amit Kapila.
src/backend/utils/adt/jsonb_util.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/adt/jsonb_util.c
b/src/backend/utils/adt/jsonb_util.c
index 4a1d445130188632fba835ecfbe0416ca335bb70..86e48a322e038592992250094c2294df80c1c8ee 100644
(file)
--- a/
src/backend/utils/adt/jsonb_util.c
+++ b/
src/backend/utils/adt/jsonb_util.c
@@
-799,6
+799,7
@@
JsonbIteratorNext(JsonbIterator ** it, JsonbValue * val, bool skipNested)
}
elog(ERROR, "invalid iterator state");
+ return -1;
}
/*
@@
-1039,6
+1040,7
@@
JsonbDeepContains(JsonbIterator ** val, JsonbIterator ** mContained)
}
elog(ERROR, "unexpectedly fell off end of jsonb container");
+ return false;
}
/*
@@
-1172,6
+1174,7
@@
compareJsonbScalarValue(JsonbValue * aScalar, JsonbValue * bScalar)
}
}
elog(ERROR, "jsonb scalar type mismatch");
+ return -1;
}
/*