Skip to content

Commit fc59267

Browse files
committed
Fix gcc compiler warning by adding #ifdef GDB_HELPERS
1 parent 1385f6f commit fc59267

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/reduce.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,14 @@ static bool test(const ReduceSettings &settings, const std::vector<std::string>
105105
return test(settings, filedata, line, line);
106106
}
107107

108+
#ifdef GDB_HELPERS
108109
static void printstr(const std::vector<std::string> &filedata, int i1, int i2)
109110
{
110111
std::cout << filedata.size();
111112
for (int i = i1; i < i2; ++i)
112113
std::cout << i << ":" << filedata[i] << std::endl;
113114
}
115+
#endif
114116

115117
static std::vector<std::string> readfile(const std::string &filename)
116118
{

0 commit comments

Comments
 (0)