Thread: warning in partioning code
Hi, Compiling master on debian stretch, gcc 9.3.0 complains: partbounds.c: In function ‘partition_bounds_merge’: partbounds.c:1024:21: warning: unused variable ‘inner_binfo’ [-Wunused-variable] 1024 | PartitionBoundInfo inner_binfo = inner_rel->boundinfo; | ^~~~~~~~~~~ Maybe it can be fixed. thanks, Erik Rijkers
Hi Erik, On Thu, Apr 9, 2020 at 1:07 AM Erik Rijkers <er@xs4all.nl> wrote: > Compiling master on debian stretch, gcc 9.3.0 complains: > > partbounds.c: In function ‘partition_bounds_merge’: > partbounds.c:1024:21: warning: unused variable ‘inner_binfo’ > [-Wunused-variable] > 1024 | PartitionBoundInfo inner_binfo = inner_rel->boundinfo; > | ^~~~~~~~~~~ > > Maybe it can be fixed. Yeah, that is a known issue [1]. I'll work on that tomorrow. (I'm too tired today.) Thanks for the report! Best regards, Etsuro Fujita [1] https://www.postgresql.org/message-id/CAGz5QCJ1gBhg6upU0%2BpkYmHZsj%2BOaMgXCAf2GBVEm_k6%2BUr0zQ%40mail.gmail.com