Commit 0c93039
committed
Address review feedback: version-gated NODISCARD_ERROR, fix behavioral changes
- platform.h: Replace simple no-op macro with version-gated
OIIO_NODISCARD_ERROR_ENABLE that defaults to disabled for OIIO < 3.3
and enabled for >= 3.3, overridable via -D flag
- py_imagebuf.cpp: Restore returning empty py::bytes() instead of
py::none() on open failure to preserve backward compatibility
- jpegoutput.cpp: Restructure open/close flow to guarantee close()
is always called even when open() fails, matching previous behavior
- imageio.h: Apply clang-format to NODISCARD_ERROR-annotated functions
Signed-off-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>1 parent 5b166ef commit 0c93039
File tree
4 files changed
+46
-46
lines changed- src
- include/OpenImageIO
- jpeg.imageio
- python
4 files changed
+46
-46
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1415 | 1415 | | |
1416 | 1416 | | |
1417 | 1417 | | |
1418 | | - | |
1419 | | - | |
1420 | | - | |
1421 | | - | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
1422 | 1421 | | |
1423 | 1422 | | |
1424 | 1423 | | |
1425 | 1424 | | |
1426 | 1425 | | |
1427 | | - | |
1428 | | - | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
1429 | 1429 | | |
1430 | 1430 | | |
1431 | 1431 | | |
| |||
1438 | 1438 | | |
1439 | 1439 | | |
1440 | 1440 | | |
1441 | | - | |
1442 | | - | |
| 1441 | + | |
| 1442 | + | |
1443 | 1443 | | |
1444 | 1444 | | |
1445 | 1445 | | |
| |||
1486 | 1486 | | |
1487 | 1487 | | |
1488 | 1488 | | |
1489 | | - | |
1490 | | - | |
1491 | | - | |
1492 | | - | |
1493 | | - | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
1494 | 1493 | | |
1495 | 1494 | | |
1496 | 1495 | | |
1497 | 1496 | | |
1498 | 1497 | | |
1499 | | - | |
1500 | | - | |
1501 | | - | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
1502 | 1501 | | |
1503 | 1502 | | |
1504 | 1503 | | |
| |||
1512 | 1511 | | |
1513 | 1512 | | |
1514 | 1513 | | |
1515 | | - | |
1516 | | - | |
1517 | | - | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
1518 | 1517 | | |
1519 | 1518 | | |
1520 | 1519 | | |
| |||
4704 | 4703 | | |
4705 | 4704 | | |
4706 | 4705 | | |
4707 | | - | |
| 4706 | + | |
4708 | 4707 | | |
4709 | 4708 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
470 | 484 | | |
471 | 485 | | |
472 | 486 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
| 36 | + | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
| |||
104 | 102 | | |
105 | 103 | | |
106 | 104 | | |
107 | | - | |
108 | | - | |
109 | | - | |
| 105 | + | |
110 | 106 | | |
111 | 107 | | |
112 | 108 | | |
| |||
582 | 578 | | |
583 | 579 | | |
584 | 580 | | |
585 | | - | |
586 | | - | |
587 | | - | |
| 581 | + | |
588 | 582 | | |
589 | 583 | | |
590 | 584 | | |
591 | 585 | | |
592 | 586 | | |
593 | 587 | | |
594 | | - | |
595 | | - | |
| 588 | + | |
596 | 589 | | |
597 | 590 | | |
598 | 591 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
158 | | - | |
159 | | - | |
| 157 | + | |
160 | 158 | | |
161 | 159 | | |
162 | 160 | | |
| |||
194 | 192 | | |
195 | 193 | | |
196 | 194 | | |
197 | | - | |
198 | | - | |
199 | | - | |
| 195 | + | |
200 | 196 | | |
201 | 197 | | |
202 | 198 | | |
203 | 199 | | |
204 | | - | |
205 | | - | |
206 | | - | |
| 200 | + | |
207 | 201 | | |
208 | 202 | | |
209 | 203 | | |
| |||
271 | 265 | | |
272 | 266 | | |
273 | 267 | | |
274 | | - | |
| 268 | + | |
275 | 269 | | |
276 | 270 | | |
277 | 271 | | |
| |||
0 commit comments