diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2024-03-17 17:54:45 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2024-03-17 17:54:45 -0400 |
commit | 33f13168ccd6e65bf0b3959a7e894449e8b6cb36 (patch) | |
tree | 5a48b3adf3e4440a2577612bb304bd1bb6fca692 /src | |
parent | 7eb9a8201890f3b208fd4c109a5b08bf139b692a (diff) | |
download | postgresql-33f13168ccd6e65bf0b3959a7e894449e8b6cb36.tar.gz postgresql-33f13168ccd6e65bf0b3959a7e894449e8b6cb36.zip |
Mark hash_corrupted() as pg_attribute_noreturn.
Coverity started complaining about this after cc5ef90ed.
The code's not really different from before, but might
as well clarify its intent.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/utils/hash/dynahash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/hash/dynahash.c b/src/backend/utils/hash/dynahash.c index 4080833df0f..145e058fe67 100644 --- a/src/backend/utils/hash/dynahash.c +++ b/src/backend/utils/hash/dynahash.c @@ -272,7 +272,7 @@ static HASHBUCKET get_hash_entry(HTAB *hashp, int freelist_idx); static void hdefault(HTAB *hashp); static int choose_nelem_alloc(Size entrysize); static bool init_htab(HTAB *hashp, long nelem); -static void hash_corrupted(HTAB *hashp); +static void hash_corrupted(HTAB *hashp) pg_attribute_noreturn(); static uint32 hash_initial_lookup(HTAB *hashp, uint32 hashvalue, HASHBUCKET **bucketptr); static long next_pow2_long(long num); |