Andres Freund <and...@anarazel.de> writes:
> On 2018-09-30 17:55:57 +0000, Tom Lane wrote:
>> Create an RTE field to record the query's lock mode for each relation.

> This triggers a new warning for me, when building without asserts:

> /home/andres/src/postgresql/src/backend/executor/execMain.c: In function 
> ‘InitPlan’:
> /home/andres/src/postgresql/src/backend/executor/execMain.c:963:12: warning: 
> variable ‘rellockmode’ set but not used [-Wunused-but-set-variable]
>    LOCKMODE rellockmode;
>             ^~~~~~~~~~~

Yeah, I knew it would do that.  I didn't think it was worth working
around, because that issue will go away in the next phase of the
patch (probably tomorrow).

                        regards, tom lane

Reply via email to