postgrespro/pgsphere

Build warning in process_moc.cpp

Closed this issue · 2 comments

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);
      |              ^

Can we closed it?

PR #47 has been merged, addressing this issue. Closing.