Skip to content

Commit 27565de

Browse files
authored
Merge pull request #35 from justinhj/fix-warnings
Fix warnings
2 parents 50daadb + f4c4236 commit 27565de

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

cpp/8puzzle.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@
77
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
88

99
#include <iostream>
10-
#include <sstream>
1110
#include <stdio.h>
1211
#include <assert.h>
13-
#include <new>
14-
1512
#include <ctype.h>
1613

1714
// Configuration
@@ -668,7 +665,9 @@ int main( int argc, char *argv[] )
668665

669666
unsigned int SearchState;
670667

668+
#if DEBUG_LISTS
671669
unsigned int SearchSteps = 0;
670+
#endif
672671

673672
do
674673
{
@@ -711,7 +710,10 @@ int main( int argc, char *argv[] )
711710
astarsearch.CancelSearch();
712711
}
713712
#endif
713+
714+
#if DEBUG_LISTS
714715
SearchSteps++;
716+
#endif
715717
}
716718
while( SearchState == AStarSearch<PuzzleState>::SEARCH_STATE_SEARCHING );
717719

cpp/makefile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,3 @@ tests : tests.cpp 8puzzle findpath minpathbucharest
2323

2424
test: tests
2525
./tests
26-
27-
28-
29-
30-
31-

0 commit comments

Comments
 (0)