Move extern declarations for EXEC_BACKEND to header files
authorPeter Eisentraut <[email protected]>
Tue, 23 Jul 2024 12:58:30 +0000 (14:58 +0200)
committerPeter Eisentraut <[email protected]>
Tue, 23 Jul 2024 13:07:10 +0000 (15:07 +0200)
commitd3cc5ffe81f64c6418ba9b18a9db32392f8027e6
treef6d60395f85e4b0ef327b1939aedee415168f03e
parent840b3b5b4ee90ce8b692519e534dfb015d89fe8f
Move extern declarations for EXEC_BACKEND to header files

This fixes warnings from -Wmissing-variable-declarations (not yet part
of the standard warning options) under EXEC_BACKEND.  The
NON_EXEC_STATIC variables need a suitable declaration in a header file
under EXEC_BACKEND.

Also fix the inconsistent application of the volatile qualifier for
PMSignalState, which was revealed by this change.

Reviewed-by: Andres Freund <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/e0a62134-83da-4ba4-8cdb-ceb0111c95ce@eisentraut.org
src/backend/postmaster/launch_backend.c
src/include/postmaster/postmaster.h
src/include/postmaster/syslogger.h
src/include/storage/pmsignal.h
src/include/storage/proc.h