mirror of
https://github.com/postgres/postgres.git
synced 2025-11-24 00:23:06 +03:00
Fix most -Wundef warnings
In some cases #if was used instead of #ifdef in an inconsistent style.
Cleaning this up also helps when analyzing cases like
38d8dce61f where this makes a
difference.
There are no behavior changes here, but the change in pg_bswap.h would
prevent possible accidental misuse by third-party code.
Discussion: https://www.postgresql.org/message-id/flat/3b615ca5-c595-3f1d-fdf7-a429e564f614%402ndquadrant.com
This commit is contained in:
@@ -164,7 +164,7 @@ static void FreePagePushSpanLeader(FreePageManager *fpm, Size first_page,
|
||||
static Size FreePageManagerLargestContiguous(FreePageManager *fpm);
|
||||
static void FreePageManagerUpdateLargest(FreePageManager *fpm);
|
||||
|
||||
#if FPM_EXTRA_ASSERTS
|
||||
#ifdef FPM_EXTRA_ASSERTS
|
||||
static Size sum_free_pages(FreePageManager *fpm);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user