Skip to content

Commit e942af7

Browse files
committed
Suppress compiler warning in non-cassert builds.
Oversight in 808e13b, reported by Bruce Momjian. Discussion: https://postgr.es/m/20200826160251.GB21909@momjian.us
1 parent fe7fd4e commit e942af7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/backend/storage/file/sharedfileset.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,6 @@ SharedFileSetDeleteOnProcExit(int status, Datum arg)
285285
void
286286
SharedFileSetUnregister(SharedFileSet *input_fileset)
287287
{
288-
bool found = false;
289288
ListCell *l;
290289

291290
/*
@@ -303,12 +302,12 @@ SharedFileSetUnregister(SharedFileSet *input_fileset)
303302
if (input_fileset == fileset)
304303
{
305304
filesetlist = list_delete_cell(filesetlist, l);
306-
found = true;
307-
break;
305+
return;
308306
}
309307
}
310308

311-
Assert(found);
309+
/* Should have found a match */
310+
Assert(false);
312311
}
313312

314313
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy