sahrk / DGGRID

A command-line application that generates and manipulates icosahedral discrete global grids.
GNU Affero General Public License v3.0
78 stars 26 forks source link

Unused variables #26

Closed r-barnes closed 3 years ago

r-barnes commented 3 years ago

I'm seeing the following unused variables.

[48/118] Building CXX object src/lib/dglib/CMakeFiles/dglib.dir/lib/DgInAIGenFile.cpp.o
../src/lib/dglib/lib/DgInAIGenFile.cpp: In member function ‘virtual DgInLocFile& DgInAIGenFile::extract(DgLocVector&)’:
../src/lib/dglib/lib/DgInAIGenFile.cpp:87:28: warning: unused variable ‘v’ [-Wunused-variable]
   87 |    vector<DgAddressBase*>& v = vec.addressVec();
      |                            ^
[110/118] Building CXX object src/apps/dggrid/CMakeFiles/dggrid.dir/binpres.cpp.o
../src/apps/dggrid/binpres.cpp: In function ‘void binPresGlobal(BinPresenceParam&)’:
../src/apps/dggrid/binpres.cpp:168:19: warning: unused variable ‘deg’ [-Wunused-variable]
  168 |    DgGeoSphDegRF& deg = *(DgGeoSphDegRF::makeRF(geoRF, geoRF.name() + "Deg"));
      |                   ^~~
../src/apps/dggrid/binpres.cpp: In function ‘void binPresPartial(BinPresenceParam&)’:
../src/apps/dggrid/binpres.cpp:304:19: warning: unused variable ‘deg’ [-Wunused-variable]
  304 |    DgGeoSphDegRF& deg = *(DgGeoSphDegRF::makeRF(geoRF, geoRF.name() + "Deg"));
      |                   ^~~
[111/118] Building CXX object src/apps/dggrid/CMakeFiles/dggrid.dir/binvals.cpp.o
../src/apps/dggrid/binvals.cpp: In function ‘void binValsGlobal(BinValsParam&)’:
../src/apps/dggrid/binvals.cpp:180:19: warning: unused variable ‘deg’ [-Wunused-variable]
  180 |    DgGeoSphDegRF& deg = *(DgGeoSphDegRF::makeRF(geoRF, geoRF.name() + "Deg"));
      |                   ^~~
../src/apps/dggrid/binvals.cpp: In function ‘void binValsPartial(BinValsParam&)’:
../src/apps/dggrid/binvals.cpp:312:19: warning: unused variable ‘deg’ [-Wunused-variable]
  312 |    DgGeoSphDegRF& deg = *(DgGeoSphDegRF::makeRF(geoRF, geoRF.name() + "Deg"));
      |                   ^~~
[114/118] Building CXX object src/apps/dggrid/CMakeFiles/dggrid.dir/transform.cpp.o
../src/apps/dggrid/transform.cpp: In function ‘void doTransform(TransformParam&)’:
../src/apps/dggrid/transform.cpp:147:19: warning: unused variable ‘deg’ [-Wunused-variable]
  147 |    DgGeoSphDegRF& deg = *(DgGeoSphDegRF::makeRF(geoRF, geoRF.name() + "Deg"));
sahrk commented 3 years ago

Cleaning up old issues...