diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d2b233ef..e56177348 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,8 @@ # FindPython's Development.Module component was added in 3.18. # Require 3.18.2+ because pybind11 recommends it. cmake_minimum_required(VERSION 3.18.2) +# This policy CMP0177 can be removed when we upgrade to CMake >= 3.31. +cmake_policy(SET CMP0177 NEW) #------------------------------------------------------------------------------ # Project Metadata diff --git a/src/opentimelineio/serializableObject.h b/src/opentimelineio/serializableObject.h index 118e686fd..8a97110ae 100644 --- a/src/opentimelineio/serializableObject.h +++ b/src/opentimelineio/serializableObject.h @@ -162,7 +162,7 @@ class OTIO_API_TYPE SerializableObject template bool read(std::string const& key, Retainer* dest) { - SerializableObject* so; + SerializableObject* so = nullptr; if (!read(key, &so)) { return false;