From fc592673a127c5ed08ca888975dfefea342a541e Mon Sep 17 00:00:00 2001 From: Alexander Mai Date: Thu, 15 May 2014 21:02:08 +0200 Subject: [PATCH] Fix gcc compiler warning by adding #ifdef GDB_HELPERS --- tools/reduce.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/reduce.cpp b/tools/reduce.cpp index fa5362d0d..7203fc50d 100644 --- a/tools/reduce.cpp +++ b/tools/reduce.cpp @@ -105,12 +105,14 @@ static bool test(const ReduceSettings &settings, const std::vector return test(settings, filedata, line, line); } +#ifdef GDB_HELPERS static void printstr(const std::vector &filedata, int i1, int i2) { std::cout << filedata.size(); for (int i = i1; i < i2; ++i) std::cout << i << ":" << filedata[i] << std::endl; } +#endif static std::vector readfile(const std::string &filename) {