[Bf-blender-cvs] [cbb854a98f2] master: Cleanup: Fix build warning on windows.
Ray Molenkamp
noreply at git.blender.org
Wed Mar 11 20:26:14 CET 2020
Commit: cbb854a98f27de1aeb39318138998e3c7d628c2d
Author: Ray Molenkamp
Date: Wed Mar 11 13:26:09 2020 -0600
Branches: master
https://developer.blender.org/rBcbb854a98f27de1aeb39318138998e3c7d628c2d
Cleanup: Fix build warning on windows.
printf is called for a size_t (64 bit on x64) type
but the formatter is `%lu` (32 bit) leading to a
warning with MSVC.
`%zu` is the appropriate formatter.
===================================================================
M source/blender/io/usd/intern/abstract_hierarchy_iterator.cc
===================================================================
diff --git a/source/blender/io/usd/intern/abstract_hierarchy_iterator.cc b/source/blender/io/usd/intern/abstract_hierarchy_iterator.cc
index b473743fe16..a958a445a3d 100644
--- a/source/blender/io/usd/intern/abstract_hierarchy_iterator.cc
+++ b/source/blender/io/usd/intern/abstract_hierarchy_iterator.cc
@@ -164,7 +164,7 @@ void AbstractHierarchyIterator::debug_print_export_graph(const ExportGraph &grap
}
}
}
- printf(" (Total graph size: %lu objects\n", total_graph_size);
+ printf(" (Total graph size: %zu objects\n", total_graph_size);
}
void AbstractHierarchyIterator::export_graph_construct()
More information about the Bf-blender-cvs
mailing list