]> granicus.if.org Git - postgresql/commit
Suppress a couple of compiler warnings seen with older gcc versions.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 23 Oct 2013 01:31:57 +0000 (21:31 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 23 Oct 2013 01:31:57 +0000 (21:31 -0400)
commit5f1ab4610102a73c124000788585c1af2a36284b
tree738ac5b773313afc74c6978a8a71e1eed0377de0
parent2c66f9924c1162bfba27c77004ccf42fb6ea188d
Suppress a couple of compiler warnings seen with older gcc versions.

To wit,
bgworker.c: In function `RegisterDynamicBackgroundWorker':
bgworker.c:761: warning: `generation' might be used uninitialized in this function
dsm_impl.c: In function `dsm_impl_op':
dsm_impl.c:197: warning: control reaches end of non-void function

Neither of these represent actual bugs, but we may as well tweak the code
so that more compilers can tell that.  This won't change the generated code
on compilers that do recognize that the cases are unreachable.
src/backend/postmaster/bgworker.c
src/backend/storage/ipc/dsm_impl.c