diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2020-08-26 17:08:11 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2020-08-26 17:08:11 -0400 |
commit | e942af7b8261cd8070d0eeaf518dbc1a664859fd (patch) | |
tree | 7b908ba100bcaa853c1653b77ed72dc6153d8739 /src/backend/storage/file/sharedfileset.c | |
parent | fe7fd4e9613f58262d30782a34b01cc0c4cbbeb5 (diff) | |
download | postgresql-e942af7b8261cd8070d0eeaf518dbc1a664859fd.tar.gz postgresql-e942af7b8261cd8070d0eeaf518dbc1a664859fd.zip |
Suppress compiler warning in non-cassert builds.
Oversight in 808e13b28, reported by Bruce Momjian.
Discussion: https://postgr.es/m/20200826160251.GB21909@momjian.us
Diffstat (limited to 'src/backend/storage/file/sharedfileset.c')
-rw-r--r-- | src/backend/storage/file/sharedfileset.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/backend/storage/file/sharedfileset.c b/src/backend/storage/file/sharedfileset.c index 65fd8ff5c0c..8b96e81ffff 100644 --- a/src/backend/storage/file/sharedfileset.c +++ b/src/backend/storage/file/sharedfileset.c @@ -285,7 +285,6 @@ SharedFileSetDeleteOnProcExit(int status, Datum arg) void SharedFileSetUnregister(SharedFileSet *input_fileset) { - bool found = false; ListCell *l; /* @@ -303,12 +302,12 @@ SharedFileSetUnregister(SharedFileSet *input_fileset) if (input_fileset == fileset) { filesetlist = list_delete_cell(filesetlist, l); - found = true; - break; + return; } } - Assert(found); + /* Should have found a match */ + Assert(false); } /* |