git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 73ce2a0) | patch
Apply project best practices to switches over enum values.
2020年1月27日 23:46:30 +0000 (18:46 -0500)
2020年1月27日 23:46:30 +0000 (18:46 -0500)
commit 4589c6a2a30faba53d0655a8e3a29b54d28bb6f6
Apply project best practices to switches over enum values.

In the wake of 1f3a02173, assorted buildfarm members were warning about
"control reaches end of non-void function" or the like. Do what we've
done elsewhere: in place of a "default" switch case that will prevent
the compiler from warning about unhandled enum values, put a catchall
elog() after the switch. And return a dummy value to satisfy compilers
that don't know elog() doesn't return.
src/backend/utils/adt/jsonapi.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /