postgrespro / pgsphere

PgSphere provides spherical data types, functions, operators, and indexing for PostgreSQL.
https://pgsphere.org
BSD 3-Clause "New" or "Revised" License
16 stars 15 forks source link

Build warning in process_moc.cpp #42

Closed esabol closed 11 months ago

esabol commented 11 months ago

This build warning in process_moc.cpp should be easy to fix, I hope:

src/process_moc.cpp: In function ‘void create_moc_release_context(void*, Smoc*, pgs_error_handler)’:
src/process_moc.cpp:624:17: warning: declaration of ‘n’ shadows a previous local [-Wshadow=compatible-local]
  624 |    rnode_iter n(moc_data, m.layout[k + 1].level_end);
      |                 ^~~~~~~~
src/process_moc.cpp:580:14: note: shadowed declaration is here
  580 |   rnode_iter n(moc_data, m.layout[1].level_end);
      |              ^
dura0ok commented 11 months ago

Can we closed it?

esabol commented 11 months ago

PR https://github.com/postgrespro/pgsphere/pull/47 has been merged, addressing this issue. Closing.