Closed trufae closed 2 years ago
../shlr/sdb/src/text.c: In function ‘text_save’: 179 ../shlr/sdb/src/text.c:145:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 180 145 | write (fd, "\n", 1); 181 | ^~~~~~~ 182 ../shlr/sdb/src/text.c:170:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 183 170 | write (fd, "\n", 1); 184 | ^~~~~~~ 185 ../shlr/sdb/src/text.c: In function ‘write_path’: 186 ../shlr/sdb/src/text.c:90:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 187 90 | write (fd, "/", 1); // always print a /, even if path is empty 188 | ^~~~~~ 189 ../shlr/sdb/src/text.c:98:4: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 190 98 | write (fd, "/", 1); 191 | ^~~~~~ 192 ../shlr/sdb/src/text.c:71:34: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 193 71 | #define FLUSH do { if (p != n) { write (fd, p, n - p); p = n; } } while (0) 194 | ^~~~~~~~ 195 ../shlr/sdb/src/text.c:77:18: note: in definition of macro ‘ESCAPE_LOOP’ 196 77 | switch (n) { escapes } \ 197 | ^~~ 198 ../shlr/sdb/src/text.c:84:4: note: in expansion of macro ‘FLUSH’ 199 84 | FLUSH; \ 200 | ^~~~~ 201 ../shlr/sdb/src/text.c:101:4: note: in expansion of macro ‘ESCAPE’ 202 101 | ESCAPE ('\', "\", 1); 203 | ^~ 204 ../shlr/sdb/src/text.c:86:4: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 205 86 | write (fd, "\"repl, replsz + 1); \ 206 | ^~~~~~~~ 207 ../shlr/sdb/src/text.c:77:18: note: in definition of macro ‘ESCAPE_LOOP’ 208 77 | switch (n) { escapes } \ 209 | ^~~ 210 ../shlr/sdb/src/text.c:101:4: note: in expansion of macro ‘ESCAPE’ 211 101 | ESCAPE ('\', "\", 1); 212 | ^~ 213 ../shlr/sdb/src/text.c:71:34: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 214 71 | #define FLUSH do { if (p != n) { write (fd, p, n - p); p = n; } } while (0) 215 | ^~~~~~~~ 216 ../shlr/sdb/src/text.c:77:18: note: in definition of macro ‘ESCAPE_LOOP’ 217 77 | switch (n) { escapes } \ 218 | ^~~ 219 ../shlr/sdb/src/text.c:84:4: note: in expansion of macro ‘FLUSH’ 220 84 | FLUSH; \ 221 | ^~~~~ 222 ../shlr/sdb/src/text.c:102:4: note: in expansion of macro ‘ESCAPE’ 223 102 | ESCAPE ('/', "/", 1); 224 | ^~ 225 ../shlr/sdb/src/text.c:86:4: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 226 86 | write (fd, "\"repl, replsz + 1); \ 227 | ^~~~~~~~ 228 ../shlr/sdb/src/text.c:77:18: note: in definition of macro ‘ESCAPE_LOOP’ 229 77 | switch (n) { escapes } \ 230 | ^~~ 231 ../shlr/sdb/src/text.c:102:4: note: in expansion of macro ‘ESCAPE’ 232 102 | ESCAPE ('/', "/", 1); 233 | ^~ 234 ../shlr/sdb/src/text.c:71:34: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 235 71 | #define FLUSH do { if (p != n) { write (fd, p, n - p); p = n; } } while (0) 236 | ^~~~~~~~ 437 | ^~~ 438 ../shlr/sdb/src/text.c:84:4: note: in expansion of macro ‘FLUSH’ 439 84 | FLUSH; \ 440 | ^~~~~ 441 ../shlr/sdb/src/text.c:126:3: note: in expansion of macro ‘ESCAPE’ 442 126 | ESCAPE ('\r', "r", 1); 443 | ^~ 444 ../shlr/sdb/src/text.c:86:4: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 445 86 | write (fd, "\"repl, replsz + 1); \ 446 | ^~~~~~~~ 447 ../shlr/sdb/src/text.c:77:18: note: in definition of macro ‘ESCAPE_LOOP’ 448 77 | switch (*n) { escapes } \ 449 | ^~~ 450 ../shlr/sdb/src/text.c:126:3: note: in expansion of macro ‘ESCAPE’ 451 126 | ESCAPE ('\r', "r", 1); 452 | ^~ 453 ../shlr/sdb/src/text.c:71:34: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 454 71 | #define FLUSH do { if (p != n) { write (fd, p, n - p); p = n; } } while (0) 455 | ^~~~~~~~ 456 ../shlr/sdb/src/text.c:80:3: note: in expansion of macro ‘FLUSH’ 457 80 | FLUSH; \ 458 | ^~~~~ 459 ../shlr/sdb/src/text.c:123:2: note: in expansion of macro ‘ESCAPE_LOOP’ 460 123 | ESCAPE_LOOP (fd, v, 461 | ^~~ 462 [44/1578] Linking static target libr2sdb.a 463 [45/1578] Compiling C object sdb.p/shlr_sdb_src_base64.c.o 464 [46/1578] Compiling C object sdb.p/shlr_sdb_src_buffer.c.o 465 [47/1578] Compiling C object sdb.p/shlr_sdb_src_set.c.o 466 [48/1578] Compiling C object sdb.p/shlr_sdb_src_cdb.c.o 467 [49/1578] Compiling C object sdb.p/shlr_sdb_src_main.c.o 468 ../shlr/sdb/src/main.c: In function ‘base64decode’: 469 ../shlr/sdb/src/main.c:669:10: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 470 669 | (void)write (1, out, declen); 471 | ^~~~~~ 472 ../shlr/sdb/src/main.c: In function ‘gen_gperf’: 473 ../shlr/sdb/src/main.c:760:3: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result [-Wunused-result] 474 760 | ftruncate (wd, 0); 475 | ^~~~~ 476 ../shlr/sdb/src/main.c: In function ‘write_null’: 477 ../shlr/sdb/src/main.c:65:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 478 65 | (void)write (1, "", 1); 479 | ^~~~
all that stuff is fixed now
../shlr/sdb/src/text.c: In function ‘text_save’: 179 ../shlr/sdb/src/text.c:145:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 180 145 | write (fd, "\n", 1); 181 | ^
~~~~~~ 182 ../shlr/sdb/src/text.c:170:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 183 170 | write (fd, "\n", 1); 184 | ^~~~~~~ 185 ../shlr/sdb/src/text.c: In function ‘write_path’: 186 ../shlr/sdb/src/text.c:90:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 187 90 | write (fd, "/", 1); // always print a /, even if path is empty 188 | ^~~~~~ 189 ../shlr/sdb/src/text.c:98:4: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 190 98 | write (fd, "/", 1); 191 | ^~~~~~ 192 ../shlr/sdb/src/text.c:71:34: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 193 71 | #define FLUSH do { if (p != n) { write (fd, p, n - p); p = n; } } while (0) 194 | ^~~~~~~~ 195 ../shlr/sdb/src/text.c:77:18: note: in definition of macro ‘ESCAPE_LOOP’ 196 77 | switch (n) { escapes } \ 197 | ^~~ 198 ../shlr/sdb/src/text.c:84:4: note: in expansion of macro ‘FLUSH’ 199 84 | FLUSH; \ 200 | ^~~~~ 201 ../shlr/sdb/src/text.c:101:4: note: in expansion of macro ‘ESCAPE’ 202 101 | ESCAPE ('\', "\", 1); 203 | ^~204 ../shlr/sdb/src/text.c:86:4: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 205 86 | write (fd, "\"repl, replsz + 1); \ 206 | ^~~~~~~~ 207 ../shlr/sdb/src/text.c:77:18: note: in definition of macro ‘ESCAPE_LOOP’ 208 77 | switch (n) { escapes } \ 209 | ^~~ 210 ../shlr/sdb/src/text.c:101:4: note: in expansion of macro ‘ESCAPE’ 211 101 | ESCAPE ('\', "\", 1); 212 | ^~213 ../shlr/sdb/src/text.c:71:34: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 214 71 | #define FLUSH do { if (p != n) { write (fd, p, n - p); p = n; } } while (0) 215 | ^~~~~~~~ 216 ../shlr/sdb/src/text.c:77:18: note: in definition of macro ‘ESCAPE_LOOP’ 217 77 | switch (n) { escapes } \ 218 | ^~~ 219 ../shlr/sdb/src/text.c:84:4: note: in expansion of macro ‘FLUSH’ 220 84 | FLUSH; \ 221 | ^~~~~ 222 ../shlr/sdb/src/text.c:102:4: note: in expansion of macro ‘ESCAPE’ 223 102 | ESCAPE ('/', "/", 1); 224 | ^~225 ../shlr/sdb/src/text.c:86:4: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 226 86 | write (fd, "\"repl, replsz + 1); \ 227 | ^~~~~~~~ 228 ../shlr/sdb/src/text.c:77:18: note: in definition of macro ‘ESCAPE_LOOP’ 229 77 | switch (n) { escapes } \ 230 | ^~~ 231 ../shlr/sdb/src/text.c:102:4: note: in expansion of macro ‘ESCAPE’ 232 102 | ESCAPE ('/', "/", 1); 233 | ^~234 ../shlr/sdb/src/text.c:71:34: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 235 71 | #define FLUSH do { if (p != n) { write (fd, p, n - p); p = n; } } while (0) 236 | ^~~~~~~~ 437 | ^~~ 438 ../shlr/sdb/src/text.c:84:4: note: in expansion of macro ‘FLUSH’ 439 84 | FLUSH; \ 440 | ^~~~~ 441 ../shlr/sdb/src/text.c:126:3: note: in expansion of macro ‘ESCAPE’ 442 126 | ESCAPE ('\r', "r", 1); 443 | ^~444 ../shlr/sdb/src/text.c:86:4: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 445 86 | write (fd, "\"repl, replsz + 1); \ 446 | ^~~~~~~~ 447 ../shlr/sdb/src/text.c:77:18: note: in definition of macro ‘ESCAPE_LOOP’ 448 77 | switch (*n) { escapes } \ 449 | ^~~ 450 ../shlr/sdb/src/text.c:126:3: note: in expansion of macro ‘ESCAPE’ 451 126 | ESCAPE ('\r', "r", 1); 452 | ^~453 ../shlr/sdb/src/text.c:71:34: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 454 71 | #define FLUSH do { if (p != n) { write (fd, p, n - p); p = n; } } while (0) 455 | ^~~~~~~~ 456 ../shlr/sdb/src/text.c:80:3: note: in expansion of macro ‘FLUSH’ 457 80 | FLUSH; \ 458 | ^~~~~ 459 ../shlr/sdb/src/text.c:123:2: note: in expansion of macro ‘ESCAPE_LOOP’ 460 123 | ESCAPE_LOOP (fd, v, 461 | ^~~462 [44/1578] Linking static target libr2sdb.a 463 [45/1578] Compiling C object sdb.p/shlr_sdb_src_base64.c.o 464 [46/1578] Compiling C object sdb.p/shlr_sdb_src_buffer.c.o 465 [47/1578] Compiling C object sdb.p/shlr_sdb_src_set.c.o 466 [48/1578] Compiling C object sdb.p/shlr_sdb_src_cdb.c.o 467 [49/1578] Compiling C object sdb.p/shlr_sdb_src_main.c.o 468 ../shlr/sdb/src/main.c: In function ‘base64decode’: 469 ../shlr/sdb/src/main.c:669:10: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 470 669 | (void)write (1, out, declen); 471 | ^~~~~~ 472 ../shlr/sdb/src/main.c: In function ‘gen_gperf’: 473 ../shlr/sdb/src/main.c:760:3: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result [-Wunused-result] 474 760 | ftruncate (wd, 0); 475 | ^~~~~ 476 ../shlr/sdb/src/main.c: In function ‘write_null’: 477 ../shlr/sdb/src/main.c:65:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 478 65 | (void)write (1, "", 1); 479 | ^~~~