Skip to content

Commit 4902772

Browse files
committed
fix: Warning suppression
With older OCIO, code was more complex than it needed to be. Signed-off-by: Larry Gritz <[email protected]>
1 parent 43a1cc6 commit 4902772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libOpenImageIO/color_ocio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,9 +760,9 @@ ColorConfig::Impl::identify_builtin_equivalents()
760760
const char*
761761
ColorConfig::Impl::IdentifyBuiltinColorSpace(const char* name) const
762762
{
763+
#if OCIO_VERSION_HEX >= MAKE_OCIO_VERSION_HEX(2, 3, 0)
763764
if (!config_ || disable_builtin_configs)
764765
return nullptr;
765-
#if OCIO_VERSION_HEX >= MAKE_OCIO_VERSION_HEX(2, 3, 0)
766766
try {
767767
return OCIO::Config::IdentifyBuiltinColorSpace(config_, builtinconfig_,
768768
name);

0 commit comments

Comments
 (0)