Fix gcc compiler warning by adding #ifdef GDB_HELPERS

This commit is contained in:
Alexander Mai 2014-05-15 21:02:08 +02:00
parent 1385f6f7c2
commit fc592673a1
1 changed files with 2 additions and 0 deletions

View File

@ -105,12 +105,14 @@ static bool test(const ReduceSettings &settings, const std::vector<std::string>
return test(settings, filedata, line, line); return test(settings, filedata, line, line);
} }
#ifdef GDB_HELPERS
static void printstr(const std::vector<std::string> &filedata, int i1, int i2) static void printstr(const std::vector<std::string> &filedata, int i1, int i2)
{ {
std::cout << filedata.size(); std::cout << filedata.size();
for (int i = i1; i < i2; ++i) for (int i = i1; i < i2; ++i)
std::cout << i << ":" << filedata[i] << std::endl; std::cout << i << ":" << filedata[i] << std::endl;
} }
#endif
static std::vector<std::string> readfile(const std::string &filename) static std::vector<std::string> readfile(const std::string &filename)
{ {