Skip to content

Commit 9a3319c

Browse files
committed
api: handle reset() return in ColorConfig constructor
The ColorConfig constructor calls reset() without using the return value, which triggers OIIO_NODISCARD_ERROR. The error remains queryable via has_error(), so adding a cast (void) to explicitly discard the return from reset(). Signed-off-by: Luna Kim <177369799+luna-y-kim@users.noreply.github.com>
1 parent 583a325 commit 9a3319c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libOpenImageIO/color_ocio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ ColorConfig::Impl::IdentifyBuiltinColorSpace(const char* name) const
807807

808808

809809

810-
ColorConfig::ColorConfig(string_view filename) { reset(filename); }
810+
ColorConfig::ColorConfig(string_view filename) { (void)reset(filename); }
811811

812812

813813

0 commit comments

Comments
 (0)