1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-22 23:02:54 +03:00

Suppress compiler warning in non-cassert builds.

Oversight in 808e13b28, reported by Bruce Momjian.

Discussion: https://postgr.es/m/20200826160251.GB21909@momjian.us
This commit is contained in:
Tom Lane 2020-08-26 17:08:11 -04:00
parent fe7fd4e961
commit e942af7b82

View File

@ -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);
}
/*