Move extern declarations for EXEC_BACKEND to header files
Peter Eisentraut <peter@eisentraut.org>
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 <andres@anarazel.de> Discussion: https://www.postgresql.org/message-id/flat/e0a62134-83da-4ba4-8cdb-ceb0111c95ce@eisentraut.org
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/postmaster/launch_backend.c | modified | +1 −11 |
| src/include/postmaster/postmaster.h | modified | +4 −0 |
| src/include/postmaster/syslogger.h | modified | +4 −0 |
| src/include/storage/pmsignal.h | modified | +4 −0 |
| src/include/storage/proc.h | modified | +5 −0 |
Discussion
- consider -Wmissing-variable-declarations 13 messages · 2024-05-09 → 2026-02-21