From ad5e31e2031349c9b9d0bf5d9fcaa1ea7950db58 Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Tue, 26 Mar 2013 17:58:39 -0400 Subject: Fixes for warnings from clang++, from -std=gnu++0x, from swig, and from javac --- src/printer/ast/ast_printer.h | 1 + src/printer/cvc/cvc_printer.cpp | 2 ++ src/printer/cvc/cvc_printer.h | 4 +--- src/printer/smt1/smt1_printer.h | 1 + src/printer/smt2/smt2_printer.h | 1 + 5 files changed, 6 insertions(+), 3 deletions(-) (limited to 'src/printer') diff --git a/src/printer/ast/ast_printer.h b/src/printer/ast/ast_printer.h index 0923848e9..c3cd488d8 100644 --- a/src/printer/ast/ast_printer.h +++ b/src/printer/ast/ast_printer.h @@ -31,6 +31,7 @@ class AstPrinter : public CVC4::Printer { void toStream(std::ostream& out, TNode n, int toDepth, bool types) const throw(); void toStream(std::ostream& out, Model& m, const Command* c) const throw(); public: + using CVC4::Printer::toStream; void toStream(std::ostream& out, TNode n, int toDepth, bool types, size_t dag) const throw(); void toStream(std::ostream& out, const Command* c, int toDepth, bool types, size_t dag) const throw(); void toStream(std::ostream& out, const CommandStatus* s) const throw(); diff --git a/src/printer/cvc/cvc_printer.cpp b/src/printer/cvc/cvc_printer.cpp index 524344612..bad05b5c8 100644 --- a/src/printer/cvc/cvc_printer.cpp +++ b/src/printer/cvc/cvc_printer.cpp @@ -24,6 +24,8 @@ #include "smt/options.h" #include "theory/model.h" #include "theory/arrays/theory_arrays_rewriter.h" +#include "printer/dagification_visitor.h" +#include "util/node_visitor.h" #include #include diff --git a/src/printer/cvc/cvc_printer.h b/src/printer/cvc/cvc_printer.h index 77d770bb2..71ad947bf 100644 --- a/src/printer/cvc/cvc_printer.h +++ b/src/printer/cvc/cvc_printer.h @@ -22,9 +22,6 @@ #include #include "printer/printer.h" -#include "printer/dagification_visitor.h" -#include "theory/substitutions.h" -#include "util/node_visitor.h" namespace CVC4 { namespace printer { @@ -34,6 +31,7 @@ class CvcPrinter : public CVC4::Printer { void toStream(std::ostream& out, TNode n, int toDepth, bool types, bool bracket) const throw(); void toStream(std::ostream& out, Model& m, const Command* c) const throw(); public: + using CVC4::Printer::toStream; void toStream(std::ostream& out, TNode n, int toDepth, bool types, size_t dag) const throw(); void toStream(std::ostream& out, const Command* c, int toDepth, bool types, size_t dag) const throw(); void toStream(std::ostream& out, const CommandStatus* s) const throw(); diff --git a/src/printer/smt1/smt1_printer.h b/src/printer/smt1/smt1_printer.h index ca19c19c2..118f6b028 100644 --- a/src/printer/smt1/smt1_printer.h +++ b/src/printer/smt1/smt1_printer.h @@ -30,6 +30,7 @@ namespace smt1 { class Smt1Printer : public CVC4::Printer { void toStream(std::ostream& out, Model& m, const Command* c) const throw(); public: + using CVC4::Printer::toStream; void toStream(std::ostream& out, TNode n, int toDepth, bool types, size_t dag) const throw(); void toStream(std::ostream& out, const Command* c, int toDepth, bool types, size_t dag) const throw(); void toStream(std::ostream& out, const CommandStatus* s) const throw(); diff --git a/src/printer/smt2/smt2_printer.h b/src/printer/smt2/smt2_printer.h index 32a0c94ba..cf0d06e6c 100644 --- a/src/printer/smt2/smt2_printer.h +++ b/src/printer/smt2/smt2_printer.h @@ -32,6 +32,7 @@ class Smt2Printer : public CVC4::Printer { void toStream(std::ostream& out, Model& m, const Command* c) const throw(); void toStream(std::ostream& out, Model& m) const throw(); public: + using CVC4::Printer::toStream; void toStream(std::ostream& out, TNode n, int toDepth, bool types, size_t dag) const throw(); void toStream(std::ostream& out, const Command* c, int toDepth, bool types, size_t dag) const throw(); void toStream(std::ostream& out, const CommandStatus* s) const throw(); -- cgit v1.2.3