Fix -Wvexing-parse warnings with clang-6
Change-Id: I577ace832d2d2af7cf7bdef8adfd6c10ba2711d7
diff --git a/tests/unit/repo-command-parameter.cpp b/tests/unit/repo-command-parameter.cpp
index 3c5efcf..3e35169 100644
--- a/tests/unit/repo-command-parameter.cpp
+++ b/tests/unit/repo-command-parameter.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/**
- * Copyright (c) 2014, Regents of the University of California.
+/*
+ * Copyright (c) 2014-2018, Regents of the University of California.
*
* This file is part of NDN repo-ng (Next generation of NDN repository).
* See AUTHORS.md for complete list of repo-ng authors and contributors.
@@ -43,7 +43,7 @@
// These octets are obtained by the snippet below.
// This check is intended to detect unexpected encoding change in the future.
- //for (ndn::Buffer::const_iterator it = wire.begin(); it != wire.end(); ++it) {
+ //for (auto it = wire.begin(); it != wire.end(); ++it) {
// printf("0x%02x, ", *it);
//}
static const uint8_t expected[] = {
@@ -55,10 +55,7 @@
BOOST_REQUIRE_EQUAL_COLLECTIONS(expected, expected + sizeof(expected),
wire.begin(), wire.end());
- BOOST_REQUIRE_NO_THROW(repo::RepoCommandParameter(wire));
-
repo::RepoCommandParameter decoded(wire);
- //std::cout << decoded << std::endl;
BOOST_CHECK_EQUAL(decoded.getName(), parameter.getName());
BOOST_CHECK_EQUAL(decoded.getStartBlockId(), parameter.getStartBlockId());
BOOST_CHECK_EQUAL(decoded.getEndBlockId(), parameter.getEndBlockId());