prewarm compiler warnings

From: Erik Rijkers <er(at)xs4all(dot)nl>
To: pgsql-hackers(at)postgresql(dot)org
Subject: prewarm compiler warnings
Date: 2018-11-23 15:34:29
Message-ID: df0dcca2025b3d90d946ecc508ca9678@xs4all.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

gcc-6.3.0 complains about this:

autoprewarm.c: In function ‘autoprewarm_main’:
autoprewarm.c:210:9: warning: variable ‘rc’ set but not used
[-Wunused-but-set-variable]
int rc;

The warning comes only in master.

The warnings are a bit annoying; the attached silences them by removing
those assignments.

Thanks,

Erik Rijkers

Attachment Content-Type Size
prewarm-fix.diff text/x-diff 896 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message REIX, Tony 2018-11-23 15:53:57 RE: Shared Memory: How to use SYSV rather than MMAP ?
Previous Message Tom Lane 2018-11-23 15:20:25 Re: pgsql: Add WL_EXIT_ON_PM_DEATH pseudo-event.