Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6b00d81

Browse files
committed
hide false positives found by clang analyzer
1 parent a49fdac commit 6b00d81

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pathman_workers.c

+3
Original file line numberDiff line numberDiff line change
@@ -534,12 +534,14 @@ bgw_main_concurrent_part(Datum main_arg)
534534

535535
/* Great, now relation is locked */
536536
rel_locked = true;
537+
(void) rel_locked; /* mute clang analyzer */
537538

538539
/* Make sure that relation exists */
539540
if (!SearchSysCacheExists1(RELOID, ObjectIdGetDatum(part_slot->relid)))
540541
{
541542
/* Exit after we raise ERROR */
542543
failures_count = PART_WORKER_MAX_ATTEMPTS;
544+
(void) failures_count; /* mute clang analyzer */
543545

544546
elog(ERROR, "relation %u does not exist", part_slot->relid);
545547
}
@@ -549,6 +551,7 @@ bgw_main_concurrent_part(Datum main_arg)
549551
{
550552
/* Exit after we raise ERROR */
551553
failures_count = PART_WORKER_MAX_ATTEMPTS;
554+
(void) failures_count; /* mute clang analyzer */
552555

553556
elog(ERROR, "relation \"%s\" is not partitioned",
554557
get_rel_name(part_slot->relid));

0 commit comments

Comments
 (0)