From: Heikki Linnakangas Date: Tue, 7 Apr 2026 13:18:31 +0000 (+0300) Subject: Tidy up #ifdef USE_INJECTION_POINTS guards X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9480c585df6cdb33c542c4a2cac26a341a54afd4;p=thirdparty%2Fpostgresql.git Tidy up #ifdef USE_INJECTION_POINTS guards Remove unnecessary #ifdef guard around the function prototypes; they are already inside a larger #ifdef block. Move #include "subsystems.h" inside the USE_INJECTION_POINTS guard; it's needed for InjectionPointShmemCallbacks, which is a also inside the guard. Reported-by: Dagfinn Ilmari Mannsåker Discussion: https://www.postgresql.org/message-id/87y0iz2c1v.fsf@wibble.ilmari.org --- diff --git a/src/backend/utils/misc/injection_point.c b/src/backend/utils/misc/injection_point.c index aa455c62bcc..9d30843a111 100644 --- a/src/backend/utils/misc/injection_point.c +++ b/src/backend/utils/misc/injection_point.c @@ -17,7 +17,6 @@ */ #include "postgres.h" -#include "storage/subsystems.h" #include "utils/injection_point.h" #ifdef USE_INJECTION_POINTS @@ -29,6 +28,7 @@ #include "storage/fd.h" #include "storage/lwlock.h" #include "storage/shmem.h" +#include "storage/subsystems.h" #include "utils/hsearch.h" #include "utils/memutils.h" @@ -110,10 +110,8 @@ typedef struct InjectionPointCacheEntry static HTAB *InjectionPointCache = NULL; -#ifdef USE_INJECTION_POINTS static void InjectionPointShmemRequest(void *arg); static void InjectionPointShmemInit(void *arg); -#endif /* * injection_point_cache_add