In file included from levenshtein.cpp:10:
./implementation.hpp: In instantiation of ‘DIST EditDistance<C, DIST, DEBUG>::compute(const std::vector<C>&, const std::vector<C>&) [with C = unsigned int; DIST = long unsigned int; bool DEBUG = true]’:
levenshtein.cpp:72:36: required from ‘std::size_t computeDistance(std::vector<unsigned int>, const std::vector<unsigned int>&) [with bool DEBUG = true; std::size_t = long unsigned int]’
levenshtein.cpp:115:27: required from here
./implementation.hpp:151:34: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
151 | if (DEBUG) printf("m1 = %i m2 = %i\n", m1, m2);
| ~^ ~~
| | |
| int long unsigned int
| %li
./implementation.hpp:151:42: warning: format ‘%i’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
151 | if (DEBUG) printf("m1 = %i m2 = %i\n", m1, m2);
| ~^ ~~
| | |
| int long unsigned int
| %li
./implementation.hpp:152:16: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
152 | if (m1 > 0 & m2 > 0)
| ~~~^~~
./implementation.hpp:161:68: warning: format ‘%i’ expects argument of type ‘int’, but argument 3 has type ‘std::size_t’ {aka ‘long unsigned int’} [-Wformat=]
161 | printf("tid: %i processing cell i:%i j:%i\n", tid, i - j, j);
| ~^ ~~~~~
| | |
| int std::size_t {aka long unsigned int}
| %li
./implementation.hpp:161:73: warning: format ‘%i’ expects argument of type ‘int’, but argument 4 has type ‘std::size_t’ {aka ‘long unsigned int’} [-Wformat=]
161 | printf("tid: %i processing cell i:%i j:%i\n", tid, i - j, j);
| ~^ ~
| | |
| int std::size_t {aka long unsigned int}
| %li
./implementation.hpp:166:68: warning: format ‘%i’ expects argument of type ‘int’, but argument 3 has type ‘std::size_t’ {aka ‘long unsigned int’} [-Wformat=]
166 | printf("tid: %i processing cell i:%i j:%i DONE\n", tid, i - j, j);
| ~^ ~~~~~
| | |
| int std::size_t {aka long unsigned int}
| %li
./implementation.hpp:166:73: warning: format ‘%i’ expects argument of type ‘int’, but argument 4 has type ‘std::size_t’ {aka ‘long unsigned int’} [-Wformat=]
166 | printf("tid: %i processing cell i:%i j:%i DONE\n", tid, i - j, j);
| ~^ ~
| | |
| int std::size_t {aka long unsigned int}
| %li
./implementation.hpp: In instantiation of ‘DIST EditDistance<C, DIST, DEBUG>::compute(const std::vector<C>&, const std::vector<C>&) [with C = unsigned int; DIST = long unsigned int; bool DEBUG = false]’:
levenshtein.cpp:72:36: required from ‘std::size_t computeDistance(std::vector<unsigned int>, const std::vector<unsigned int>&) [with bool DEBUG = false; std::size_t = long unsigned int]’
levenshtein.cpp:116:28: required from here
./implementation.hpp:151:34: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
151 | if (DEBUG) printf("m1 = %i m2 = %i\n", m1, m2);
| ~^ ~~
| | |
| int long unsigned int
| %li
./implementation.hpp:151:42: warning: format ‘%i’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
151 | if (DEBUG) printf("m1 = %i m2 = %i\n", m1, m2);
| ~^ ~~
| | |
| int long unsigned int
| %li
./implementation.hpp:152:16: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
152 | if (m1 > 0 & m2 > 0)
| ~~~^~~
./implementation.hpp:161:68: warning: format ‘%i’ expects argument of type ‘int’, but argument 3 has type ‘std::size_t’ {aka ‘long unsigned int’} [-Wformat=]
161 | printf("tid: %i processing cell i:%i j:%i\n", tid, i - j, j);
| ~^ ~~~~~
| | |
| int std::size_t {aka long unsigned int}
| %li
./implementation.hpp:161:73: warning: format ‘%i’ expects argument of type ‘int’, but argument 4 has type ‘std::size_t’ {aka ‘long unsigned int’} [-Wformat=]
161 | printf("tid: %i processing cell i:%i j:%i\n", tid, i - j, j);
| ~^ ~
| | |
| int std::size_t {aka long unsigned int}
| %li
./implementation.hpp:166:68: warning: format ‘%i’ expects argument of type ‘int’, but argument 3 has type ‘std::size_t’ {aka ‘long unsigned int’} [-Wformat=]
166 | printf("tid: %i processing cell i:%i j:%i DONE\n", tid, i - j, j);
| ~^ ~~~~~
| | |
| int std::size_t {aka long unsigned int}
| %li
./implementation.hpp:166:73: warning: format ‘%i’ expects argument of type ‘int’, but argument 4 has type ‘std::size_t’ {aka ‘long unsigned int’} [-Wformat=]
166 | printf("tid: %i processing cell i:%i j:%i DONE\n", tid, i - j, j);
| ~^ ~
| | |
| int std::size_t {aka long unsigned int}
| %li
./implementation.hpp: In instantiation of ‘void EditDistance<C, DIST, DEBUG>::computeCell(Cell<DIST>*, int, int, const C*, const C*) [with C = unsigned int; DIST = long unsigned int; bool DEBUG = true]’:
./implementation.hpp:164:29: required from ‘DIST EditDistance<C, DIST, DEBUG>::compute(const std::vector<C>&, const std::vector<C>&) [with C = unsigned int; DIST = long unsigned int; bool DEBUG = true]’
levenshtein.cpp:72:36: required from ‘std::size_t computeDistance(std::vector<unsigned int>, const std::vector<unsigned int>&) [with bool DEBUG = true; std::size_t = long unsigned int]’
levenshtein.cpp:115:27: required from here
./implementation.hpp:80:39: warning: comparison of integer expressions of different signedness: ‘std::size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
80 | for (std::size_t i = 0; i < MODULO; ++i)
| ~~^~~~~~~~
./implementation.hpp:84:39: warning: comparison of integer expressions of different signedness: ‘std::size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
84 | for (std::size_t i = 0; i < MODULO; ++i)
| ~~^~~~~~~~
./implementation.hpp:103:39: warning: comparison of integer expressions of different signedness: ‘std::size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
103 | for (std::size_t i = 0; i < MODULO; ++i) {
| ~~^~~~~~~~
./implementation.hpp:117:30: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘__gnu_cxx::__alloc_traits<std::allocator<long unsigned int>, long unsigned int>::value_type’ {aka ‘long unsigned int’} [-Wformat=]
117 | printf("%i ", mRow[i]);
| ~^
| |
| int
| %li
./implementation.hpp: In instantiation of ‘void EditDistance<C, DIST, DEBUG>::computeCell(Cell<DIST>*, int, int, const C*, const C*) [with C = unsigned int; DIST = long unsigned int; bool DEBUG = false]’:
./implementation.hpp:164:29: required from ‘DIST EditDistance<C, DIST, DEBUG>::compute(const std::vector<C>&, const std::vector<C>&) [with C = unsigned int; DIST = long unsigned int; bool DEBUG = false]’
levenshtein.cpp:72:36: required from ‘std::size_t computeDistance(std::vector<unsigned int>, const std::vector<unsigned int>&) [with bool DEBUG = false; std::size_t = long unsigned int]’
levenshtein.cpp:116:28: required from here
./implementation.hpp:80:39: warning: comparison of integer expressions of different signedness: ‘std::size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
80 | for (std::size_t i = 0; i < MODULO; ++i)
| ~~^~~~~~~~
./implementation.hpp:84:39: warning: comparison of integer expressions of different signedness: ‘std::size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
84 | for (std::size_t i = 0; i < MODULO; ++i)
| ~~^~~~~~~~
./implementation.hpp:103:39: warning: comparison of integer expressions of different signedness: ‘std::size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
103 | for (std::size_t i = 0; i < MODULO; ++i) {
| ~~^~~~~~~~
./implementation.hpp:117:30: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘__gnu_cxx::__alloc_traits<std::allocator<long unsigned int>, long unsigned int>::value_type’ {aka ‘long unsigned int’} [-Wformat=]
117 | printf("%i ", mRow[i]);
| ~^
| |
| int
| %li