Fix gcc compiler warning by adding #ifdef GDB_HELPERS
This commit is contained in:
parent
1385f6f7c2
commit
fc592673a1
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue