schrodinger / coordgenlibs

Schrodinger-developed 2D Coordinate Generation
BSD 3-Clause "New" or "Revised" License
42 stars 28 forks source link

Fix some set but unused variables #125

Closed d-b-w closed 1 year ago

d-b-w commented 1 year ago

Found by Apple clang version 14.0.3

    .../coordgenlibs/test/coordgenBasicSMILES.h:33:12: error: variable 'idx' set but not used [-Werror,-Wunused-but-set-variable]
        size_t idx = 0;
               ^
    .../coordgenlibs/test/coordgenBasicSMILES.h:33:12: error: variable 'idx' set but not used [-Werror,-Wunused-but-set-variable]
        size_t idx = 0;
               ^
    .../coordgenlibs/test/test_coordgen.cpp:313:9: error: variable 'bondsN' set but not used [-Werror,-Wunused-but-set-variable]
        int bondsN = 0;
            ^