Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing some unused vars in inspect #2608

Merged
merged 1 commit into from May 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 2 additions & 4 deletions tools/inspect/end_check.cpp
Expand Up @@ -10,6 +10,7 @@
#include "end_check.hpp"
#include "function_hyper.hpp"
#include <string>
#include <iterator>
#include <boost/tokenizer.hpp>
#include <boost/next_prior.hpp>

Expand All @@ -34,12 +35,9 @@ namespace boost
const string & contents ) // contents of file to be inspected
{
if (contents.find( "hpxinspect:" "noend" ) != string::npos) return;
int linenumb = 0;
char_separator<char> sep("\n", "", boost::keep_empty_tokens);
tokenizer<char_separator<char>> tokens(contents, sep);
for (const auto& t : tokens) {
linenumb++;
}
const auto linenumb = std::distance(tokens.begin(), tokens.end());
std::string lineloc = std::to_string(linenumb);
// this file deliberately contains errors
const char test_file_name[] = "wrong_line_ends_test.cpp";
Expand Down
1 change: 0 additions & 1 deletion tools/inspect/length_check.cpp
Expand Up @@ -97,7 +97,6 @@ namespace boost
while (p < someline.size())
{
currline++;
std::size_t rend = someline[p].find_last_of("\r");
bool check_not = false;
boost::regex error_note, http_note;

Expand Down
2 changes: 1 addition & 1 deletion tools/inspect/tab_check.cpp
Expand Up @@ -37,7 +37,7 @@ namespace boost
if (contents.find("hpxinspect:" "notab") != string::npos) return;
string total, linenum;
long errors = 0, currline = 0;
size_t p = 0, extend = 0;
size_t p = 0;
std::vector<std::string> someline, lineorder;

char_separator<char> sep("\n", "", boost::keep_empty_tokens);
Expand Down