Fix warnings

background-job-details
Jelte Fennema 2022-08-22 10:40:05 +02:00
parent 780d9da1c6
commit 8b672421a2
2 changed files with 3 additions and 4 deletions

View File

@ -2817,7 +2817,7 @@ JobTasksStatusCount(int64 jobId, int *scheduled, int *running, int *done, int *e
CLEAR_OPTIONAL_COUNTER(error);
CLEAR_OPTIONAL_COUNTER(unscheduled);
#undef CLEAR_OPTIONAL_COUNTER;
#undef CLEAR_OPTIONAL_COUNTER
Relation pgDistBackgroundTasks =
table_open(DistBackgroundTasksRelationId(), RowExclusiveLock);
@ -2851,7 +2851,7 @@ JobTasksStatusCount(int64 jobId, int *scheduled, int *running, int *done, int *e
#define INCREMENT_OPTIONAL_COUNTER(counter) \
if (counter) \
{ \
*counter = (*counter)++; \
(*counter)++; \
}
switch (status)

View File

@ -487,8 +487,7 @@ ConsumeTaskWorkerOutput(shm_mq_handle *responseq, BackgroundTask *task, bool *ha
{
*hadError = true;
}
/* fall-through */
__attribute__((fallthrough));
}
case 'N': /* NOTICE */