8000 Silence benign warnings from clang version 3.0-6ubuntu3. · sqlparser/postgres@b64b5cc · GitHub
[go: up one dir, main page]

Skip to content

Commit b64b5cc

Browse files
committed
Silence benign warnings from clang version 3.0-6ubuntu3.
1 parent c28b289 commit b64b5cc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

contrib/pg_standby/pg_standby.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ SetWALFileNameForCleanup(void)
345345
if (keepfiles > 0)
346346
{
347347
sscanf(nextWALFileName, "%08X%08X%08X", &tli, &log, &seg);
348-
if (tli > 0 && log >= 0 && seg > 0)
348+
if (tli > 0 && seg > 0)
349349
{
350350
log_diff = keepfiles / MaxSegmentsPerLogFile;
351351
seg_diff = keepfiles % MaxSegmentsPerLogFile;

src/backend/utils/cache/catcache.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,9 @@ AtEOXact_CatCache(bool isCommit)
566566
/* Check CatCLists */
567567
dlist_foreach(iter, &ccp->cc_lists)
568568
{
569-
CatCList *cl = dlist_container(CatCList, cache_elem, iter.cur);
569+
CatCList *cl;
570570

571+
cl = dlist_container(CatCList, cache_elem, iter.cur);
571572
Assert(cl->cl_magic == CL_MAGIC);
572573
Assert(cl->refcount == 0);
573574
Assert(!cl->dead);
@@ -580,8 +581,9 @@ AtEOXact_CatCache(bool isCommit)
580581

581582
dlist_foreach(iter, bucket)
582583
{
583-
CatCTup *ct = dlist_container(CatCTup, cache_elem, iter.cur);
584+
CatCTup *ct;
584585

586+
ct = dlist_container(CatCTup, cache_elem, iter.cur);
585587
Assert(ct->ct_magic == CT_MAGIC);
586588
Assert(ct->refcount == 0);
587589
Assert(!ct->dead);

0 commit comments

Comments
 (0)
0