Browse Source

dd_cudd.cc: silence printf warning

There is currently no portable format string argument for std::size_t,
so we simply convert to a string via std::to_string() ourselves.


git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@12191 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Joachim Klein 9 years ago
parent
commit
4652c72e78
  1. 3
      prism/src/dd/dd_cudd.cc

3
prism/src/dd/dd_cudd.cc

@ -31,6 +31,7 @@
#include <map> #include <map>
#include <set> #include <set>
#include <string>
extern FILE *dd_out; extern FILE *dd_out;
@ -365,7 +366,7 @@ void DD_ReportExternalRefCounts(DdManager *manager)
std::map<DdNode*, int> internal_refs; std::map<DdNode*, int> internal_refs;
DD_AnalyzeRefCounts(manager, nodes, internal_refs); DD_AnalyzeRefCounts(manager, nodes, internal_refs);
printf("%lu nodes\n", nodes.size());
printf("%s nodes\n", std::to_string(nodes.size()).c_str()); // no portable format string flag for size_t at the moment
for (std::set<DdNode*>::iterator it = nodes.begin(); for (std::set<DdNode*>::iterator it = nodes.begin();
it != nodes.end(); it != nodes.end();

Loading…
Cancel
Save