> I just noticed this compiler warning in a CI run,
> 
> [16:06:29.920] ../src/backend/executor/nodeWindowAgg.c:3820:16: warning: 
> ‘datum’ may be used uninitialized [-Wmaybe-uninitialized]
> [16:06:29.920]  3820 |         return datum;
> [16:06:29.920]       |                ^~~~~
> [16:06:29.920] ../src/backend/executor/nodeWindowAgg.c:3719:25: note: ‘datum’ 
> was declared here
> [16:06:29.920]  3719 |         Datum           datum;
> [16:06:29.920]       |                         ^~~~~
> 
> The logic in this function looks somewhat wicked.

Thanks for the report. I believe the warning is eliminated in the v2
patch[1].

Best regards,

[1] 
https://www.postgresql.org/message-id/20251007.112832.740065769089328041.ishii%40postgresql.org
--
Tatsuo Ishii
SRA OSS K.K.
English: http://www.sraoss.co.jp/index_en/
Japanese:http://www.sraoss.co.jp

Reply via email to