From 6912290080d3b2616642155b5a7345064a13d5c3 Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Tue, 16 Apr 2019 09:26:33 -0700 Subject: [PATCH] fix one more warning in HeightfieldExample --- examples/Heightfield/HeightfieldExample.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/examples/Heightfield/HeightfieldExample.cpp b/examples/Heightfield/HeightfieldExample.cpp index bf74a2129..a4bd06fe5 100644 --- a/examples/Heightfield/HeightfieldExample.cpp +++ b/examples/Heightfield/HeightfieldExample.cpp @@ -303,7 +303,7 @@ randomHeight } - +#if 0 static void dumpGrid ( @@ -327,7 +327,7 @@ dumpGrid //std::cerr << "\n"; } } - +#endif static void @@ -460,13 +460,9 @@ getRawHeightfieldData btAssert(!"bad model type"); } - if (0) { - // inside if(0) so it keeps compiling but isn't - // exercised and doesn't cause warnings - // std::cerr << "final grid:\n"; - dumpGrid(raw, bytesPerElement, type, s_gridSize - 1); - } - + // std::cerr << "final grid:\n"; + //dumpGrid(raw, bytesPerElement, type, s_gridSize - 1); + // find min/max for (int i = 0; i < s_gridSize; ++i) { for (int j = 0; j < s_gridSize; ++j) {