From 57f826dc960126f3aff67a150f81dbced95fc67c Mon Sep 17 00:00:00 2001 From: Justin Heyes-Jones Date: Wed, 26 Nov 2025 20:36:54 -0800 Subject: [PATCH] fix some warnings --- cpp/8puzzle.cpp | 8 +++++--- cpp/makefile | 6 ------ 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/cpp/8puzzle.cpp b/cpp/8puzzle.cpp index f47e934..dbb2189 100755 --- a/cpp/8puzzle.cpp +++ b/cpp/8puzzle.cpp @@ -7,11 +7,8 @@ //////////////////////////////////////////////////////////////////////////////////////////////////////////////// #include -#include #include #include -#include - #include // Configuration @@ -668,7 +665,9 @@ int main( int argc, char *argv[] ) unsigned int SearchState; +#if DEBUG_LISTS unsigned int SearchSteps = 0; +#endif do { @@ -711,7 +710,10 @@ int main( int argc, char *argv[] ) astarsearch.CancelSearch(); } #endif + +#if DEBUG_LISTS SearchSteps++; +#endif } while( SearchState == AStarSearch::SEARCH_STATE_SEARCHING ); diff --git a/cpp/makefile b/cpp/makefile index 39f8b44..88e7c4a 100644 --- a/cpp/makefile +++ b/cpp/makefile @@ -23,9 +23,3 @@ tests : tests.cpp 8puzzle findpath minpathbucharest test: tests ./tests - - - - - -