Re: Fix for compiler warning triggered in WinGetFuncArgInPartition() - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: Fix for compiler warning triggered in WinGetFuncArgInPartition()
Date
Msg-id aOfJi3cjo9foeynl@nathan
Whole thread Raw
In response to Fix for compiler warning triggered in WinGetFuncArgInPartition()  (Greg Burd <greg@burd.me>)
Responses Re: Fix for compiler warning triggered in WinGetFuncArgInPartition()
Re: Fix for compiler warning triggered in WinGetFuncArgInPartition()
List pgsql-hackers
On Thu, Oct 09, 2025 at 10:21:23AM -0400, Greg Burd wrote:
> ‘WinGetFuncArgInPartition’:../src/backend/executor/nodeWindowAgg.c:3809:33:
> warning:‘notnull_relpos’ may be used uninitialized
> [-Wmaybe-uninitialized] 3809 |         } while (notnull_offset <
> notnull_relpos);      |                  
> ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~../src/backend/executor/nodeWindowAgg.c:3723:33:
> note: ‘notnull_relpos’was declared here 3723 |         int               
> notnull_relpos;      |                                 ^~~~~~~~~~~~~~

Just curious, what compiler/version is this?  I skimmed the buildfarm a bit
but didn't find any such warnings.

-- 
nathan



pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: Fix overflow of nbatch
Next
From: Melanie Plageman
Date:
Subject: Re: Fix overflow of nbatch