Skip to content

Commit 705331f

Browse files
committed
fix: handle reset() return in ColorConfig constructor
OIIO_NODISCARD_ERROR added to ColorConfig::reset() in color.h requires updating ColorConfig constructor to use the return value. Add a cast (void) to explicitly discard the return from reset(). The error still remains queryable via has_error(). Signed-off-by: Luna Kim <177369799+luna-y-kim@users.noreply.github.com>
1 parent 583a325 commit 705331f

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)