[Bf-blender-cvs] [36148f20ec7] blender2.8: Fix: Silence compiler warnings about size_t's in printf
Joshua Leung
noreply at git.blender.org
Thu Aug 23 07:11:33 CEST 2018
Commit: 36148f20ec7d5465c2ec24b874fa31e6b038fccc
Author: Joshua Leung
Date: Thu Aug 23 16:58:13 2018 +1200
Branches: blender2.8
https://developer.blender.org/rB36148f20ec7d5465c2ec24b874fa31e6b038fccc
Fix: Silence compiler warnings about size_t's in printf
===================================================================
M source/blender/depsgraph/intern/depsgraph_query_filter.cc
===================================================================
diff --git a/source/blender/depsgraph/intern/depsgraph_query_filter.cc b/source/blender/depsgraph/intern/depsgraph_query_filter.cc
index cfa51ac0673..da6b239cc0a 100644
--- a/source/blender/depsgraph/intern/depsgraph_query_filter.cc
+++ b/source/blender/depsgraph/intern/depsgraph_query_filter.cc
@@ -232,8 +232,6 @@ Depsgraph *DEG_graph_filter(const Depsgraph *graph_src, Main *bmain, DEG_FilterQ
BLI_gset_free(retained_ids, NULL);
retained_ids = NULL;
- /* Debug - Are the desired targets still in there? */
-
/* Print Stats */
// XXX: Hide behind debug flags
size_t s_outer, s_operations, s_relations;
@@ -247,8 +245,10 @@ Depsgraph *DEG_graph_filter(const Depsgraph *graph_src, Main *bmain, DEG_FilterQ
DEG_stats_simple(graph_src, &s_outer, &s_operations, &s_relations);
DEG_stats_simple(graph_new, &n_outer, &n_operations, &n_relations);
- printf("%s: src = (ID's: %u (%u), Out: %u, Op: %u, Rel: %u)\n", __func__, s_ids, s_idh, s_outer, s_operations, s_relations); // XXX
- printf("%s: new = (ID's: %u (%u), Out: %u, Op: %u, Rel: %u)\n", __func__, n_ids, n_idh, n_outer, n_operations, n_relations); // XXX
+ printf("%s: src = (ID's: %zu (%u), Out: %zu, Op: %zu, Rel: %zu)\n",
+ __func__, s_ids, s_idh, s_outer, s_operations, s_relations);
+ printf("%s: new = (ID's: %zu (%u), Out: %zu, Op: %zu, Rel: %zu)\n",
+ __func__, n_ids, n_idh, n_outer, n_operations, n_relations);
/* Return this new graph instance */
return graph_new;
More information about the Bf-blender-cvs
mailing list