Apparently, Peter's compiler has faith that the switch test values here
could never not be valid values of their enums. Mine does not, and
I tend to agree with it.
break;
case ACLCHECK_NO_PRIV:
{
- const char *msg;
+ const char *msg = "???";
switch (objtype)
{
case OBJECT_TSTEMPLATE:
case OBJECT_USER_MAPPING:
elog(ERROR, "unsupported object type %d", objtype);
- msg = "???";
}
ereport(ERROR,
}
case ACLCHECK_NOT_OWNER:
{
- const char *msg;
+ const char *msg = "???";
switch (objtype)
{
case OBJECT_TSTEMPLATE:
case OBJECT_USER_MAPPING:
elog(ERROR, "unsupported object type %d", objtype);
- msg = "???";
}
ereport(ERROR,