Re: warning in code while building on windows - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: warning in code while building on windows
Date
Msg-id 20130818210849.GA9264@eldon.alvh.no-ip.org
Whole thread Raw
In response to warning in code while building on windows  (Amit Kapila <amit.kapila16@gmail.com>)
Responses Re: warning in code while building on windows  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Amit Kapila escribió:
> 1>.\src\backend\utils\cache\relfilenodemap.c(213) : warning C4101:
> 'isnull' : unreferenced local variable
> 
> It seems this variable is used only under macro USE_ASSERT_CHECKING,
> so it is better to declare under this macro only.

We have a macro for this, PG_USED_FOR_ASSERTS_ONLY.  This should silence
it; if the msvc stuff is not picking it up then maybe we need to tweak
the definition of the macro somehow.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Dimitri Fontaine
Date:
Subject: Re: Feature Request on Extensions
Next
From: Kevin Grittner
Date:
Subject: Re: Materialized views WIP patch