Skip to content

Commit 0950f50

Browse files
Fix warnings (#1414)
1 parent 419ab8e commit 0950f50

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/opentime/rationalTime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ RationalTime::from_timecode(
247247
seconds = std::stoi(fields[2]);
248248
frames = std::stoi(fields[3]);
249249
}
250-
catch (std::exception const& e)
250+
catch (std::exception const&)
251251
{
252252
if (error_status)
253253
{

src/opentimelineio/serialization.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ class CloningEncoder : public Encoder
491491
return;
492492
}
493493

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

496496
const auto& type_rec = (
497497
TypeRegistry::instance()._find_type_record(schema_name)
@@ -1005,7 +1005,7 @@ SerializableObject::Writer::write(
10051005
// this schema
10061006
if (target_version_it != _downgrade_version_manifest->end())
10071007
{
1008-
const int target_version = target_version_it->second;
1008+
const int target_version = static_cast<int>(target_version_it->second);
10091009

10101010
// and the current_version is greater than the target version
10111011
if (schema_version > target_version)

0 commit comments

Comments
 (0)