Open bencsikandrei opened 3 months ago
warn_unused_result’ [-Werror=unused-result] 91 | ::write(foutput, file_data, file_size); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/andrew/Source/inputosm/test/integration/export_db.cpp: In lambda function: /home/andrew/Source/inputosm/test/integration/export_db.cpp:181:28: error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result] 181 | ::write(fd, &r.id, sizeof(int64_t)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/andrew/Source/inputosm/test/integration/export_db.cpp:183:28: error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result] 183 | ::write(fd, &size, sizeof(int16_t)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/andrew/Source/inputosm/test/integration/export_db.cpp:186:32: error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result] 186 | ::write(fd, &m.id, sizeof(int64_t)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/andrew/Source/inputosm/test/integration/export_db.cpp:187:32: error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result] 187 | ::write(fd, m.role, strlen(m.role) + 1); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/andrew/Source/inputosm/test/integration/export_db.cpp:188:32: error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result] 188 | ::write(fd, &m.type, sizeof(int8_t)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/andrew/Source/inputosm/test/integration/export_db.cpp:191:28: error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result] 191 | ::write(fd, &size, sizeof(int16_t)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/andrew/Source/inputosm/test/integration/export_db.cpp:194:32: error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result] 194 | ::write(fd, tag.key, strlen(tag.key) + 1); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/andrew/Source/inputosm/test/integration/export_db.cpp:195:32: error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result] 195 | ::write(fd, tag.value, strlen(tag.value) + 1); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/andrew/Source/inputosm/test/integration/export_db.cpp: In lambda function: /home/andrew/Source/inputosm/test/integration/export_db.cpp:161:28: error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result] 161 | ::write(fd, &w.id, sizeof(int64_t)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/andrew/Source/inputosm/test/integration/export_db.cpp:163:28: error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result] 163 | ::write(fd, &size, sizeof(int16_t)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/andrew/Source/inputosm/test/integration/export_db.cpp:164:28: error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result] 164 | ::write(fd, w.node_refs.data(), w.node_refs.size() * sizeof(int64_t)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/andrew/Source/inputosm/test/integration/export_db.cpp:166:28: error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result] 166 | ::write(fd, &size, sizeof(int16_t)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/andrew/Source/inputosm/test/integration/export_db.cpp:169:32: error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result] 169 | ::write(fd, tag.key, strlen(tag.key) + 1); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/andrew/Source/inputosm/test/integration/export_db.cpp:170:32: error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result] 170 | ::write(fd, tag.value, strlen(tag.value) + 1); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/andrew/Source/inputosm/test/integration/export_db.cpp: In lambda function: /home/andrew/Source/inputosm/test/integration/export_db.cpp:140:28: error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result] 140 | ::write(fd, &n.id, sizeof(int64_t)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/andrew/Source/inputosm/test/integration/export_db.cpp:143:28: error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result] 143 | ::write(fd, &lat, sizeof(int32_t)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/andrew/Source/inputosm/test/integration/export_db.cpp:144:28: error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result] 144 | ::write(fd, &lon, sizeof(int32_t)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/andrew/Source/inputosm/test/integration/export_db.cpp:146:28: error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result] 146 | ::write(fd, &size, sizeof(int16_t)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/andrew/Source/inputosm/test/integration/export_db.cpp:149:32: error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result] 149 | ::write(fd, tag.key, strlen(tag.key) + 1); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/andrew/Source/inputosm/test/integration/export_db.cpp:150:32: error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result] 150 | ::write(fd, tag.value, strlen(tag.value) + 1); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors gmake[2]: *** [inputosm/test/integration/CMakeFiles/export_db.dir/build.make:76: inputosm/test/integration/CMakeFiles/export_db.dir/export_db.cpp.o] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:283: inputosm/test/integration/CMakeFiles/export_db.dir/all] Error 2 gmake[1]: *** Waiting for unfinished jobs.... /home/andrew/Source/inputosm/test/integration/export_csv.cpp: In function ‘bool write_file(const char*, std::vector<std::__cxx11::basic_string<char> >&)’: /home/andrew/Source/inputosm/test/integration/export_csv.cpp:56:18: error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result] 56 | write(fd, &file_size, 1); | ~~~~~^~~~~~~~~~~~~~~~~~~
I'll make a PR as soon as I can