New windows compiler warning from 585bca39

Started by David Rowleyalmost 12 years ago3 messageshackers
Jump to latest
#1David Rowley
dgrowleyml@gmail.com

I've attached a tiny patch that fixes a new compiler warning on the windows
build...

Perhaps the #ifndef could be placed in a nicer spot in the patch, but the
attached should at least describe where the problem lies...

(ClCompile target) ->
src\interfaces\libpq\fe-connect.c(3365): warning C4101: 'msgid' :
unreferenced local variable [D:\Postgres\b\libpq.vcxproj]

1 Warning(s)

Attachments:

fe-connect_win32_warning_fix.patchapplication/octet-stream; name=fe-connect_win32_warning_fix.patchDownload+2-0
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: David Rowley (#1)
Re: New windows compiler warning from 585bca39

David Rowley <dgrowleyml@gmail.com> writes:

I've attached a tiny patch that fixes a new compiler warning on the windows
build...

Applied, thanks.

Perhaps the #ifndef could be placed in a nicer spot in the patch, but the
attached should at least describe where the problem lies...

Yeah, I thought it better to make a separate declaration to wrap in
#ifndef. pgindent is probably going to insist on adding some vertical
whitespace around the #if, and that'll look horrid if it's just in the
middle of a list of variables.

regards, tom lane

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#3Bruce Momjian
bruce@momjian.us
In reply to: Tom Lane (#2)
Re: New windows compiler warning from 585bca39

On Thu, Apr 17, 2014 at 04:14:55PM -0400, Tom Lane wrote:

Perhaps the #ifndef could be placed in a nicer spot in the patch, but the
attached should at least describe where the problem lies...

Yeah, I thought it better to make a separate declaration to wrap in
#ifndef. pgindent is probably going to insist on adding some vertical
whitespace around the #if, and that'll look horrid if it's just in the
middle of a list of variables.

Uh, I don't think that is the case anymore.

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ Everyone has their own god. +

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers