Skip to content

Commit

Permalink
Fix warnings (#1414)
Browse files Browse the repository at this point in the history
  • Loading branch information
darbyjohnston authored Sep 24, 2022
1 parent 419ab8e commit 0950f50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/opentime/rationalTime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ RationalTime::from_timecode(
seconds = std::stoi(fields[2]);
frames = std::stoi(fields[3]);
}
catch (std::exception const& e)
catch (std::exception const&)
{
if (error_status)
{
Expand Down
4 changes: 2 additions & 2 deletions src/opentimelineio/serialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ class CloningEncoder : public Encoder
return;
}

const int target_version = (dg_version_it->second);
const int target_version = static_cast<int>(dg_version_it->second);

const auto& type_rec = (
TypeRegistry::instance()._find_type_record(schema_name)
Expand Down Expand Up @@ -1005,7 +1005,7 @@ SerializableObject::Writer::write(
// this schema
if (target_version_it != _downgrade_version_manifest->end())
{
const int target_version = target_version_it->second;
const int target_version = static_cast<int>(target_version_it->second);

// and the current_version is greater than the target version
if (schema_version > target_version)
Expand Down

0 comments on commit 0950f50

Please sign in to comment.