fix gcc warnings

This commit is contained in:
Christopher Dunn
2015-01-24 13:42:37 -06:00
parent 201904bfbb
commit 2bc6137ada
5 changed files with 7 additions and 7 deletions

View File

@@ -323,7 +323,7 @@ void Runner::listTests() const {
}
int Runner::runCommandLine(int argc, const char* argv[]) const {
typedef std::deque<std::string> TestNames;
// typedef std::deque<std::string> TestNames;
Runner subrunner;
for (int index = 1; index < argc; ++index) {
std::string opt = argv[index];

View File

@@ -214,7 +214,7 @@ TestResult& checkStringEqual(TestResult& result,
#define JSONTEST_ASSERT_PRED(expr) \
{ \
JsonTest::PredicateContext _minitest_Context = { \
result_->predicateId_, __FILE__, __LINE__, #expr \
result_->predicateId_, __FILE__, __LINE__, #expr, nullptr, nullptr \
}; \
result_->predicateStackTail_->next_ = &_minitest_Context; \
result_->predicateId_ += 1; \