Commits

Shlomi Fish committed 9c66b41

Eliminated some compilation warnings when using FCS_FREECELL_ONLY.

git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@1643 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a

  • Participants
  • Parent commits 01b5e62

Comments (0)

Files changed (1)

File fc-solve/source/lib.c

         if (user->instances_list[user->current_instance_idx].ret == FCS_STATE_NOT_BEGAN_YET)
         {
             int status;
+#if (!(defined(HARD_CODED_NUM_FREECELLS) && defined(HARD_CODED_NUM_STACKS) && defined(HARD_CODED_NUM_DECKS)))
             fc_solve_instance_t * instance = user->instance;
+#endif
 
             status = fc_solve_initial_user_state_to_c(
                 user->state_string_copy,
 
         if (user->ret == FCS_STATE_WAS_SOLVED)
         {
+#if (!(defined(HARD_CODED_NUM_FREECELLS) && defined(HARD_CODED_NUM_STACKS) && defined(HARD_CODED_NUM_DECKS)))
             fc_solve_instance_t * instance = user->instance;
+#endif
             fc_solve_move_stack_normalize(
                 user->instance->solution_moves,
                 &(user->state.info),
     user = (fcs_user_t*)user_instance;
 
     {
+#if (!(defined(HARD_CODED_NUM_FREECELLS) && defined(HARD_CODED_NUM_STACKS) && defined(HARD_CODED_NUM_DECKS)))
         fc_solve_instance_t * instance = user->instance;
+#endif
         if (user->ret == FCS_STATE_WAS_SOLVED)
         {
             int ret;
     user = (fcs_user_t *)user_instance;
 
     {
+#if (!(defined(HARD_CODED_NUM_FREECELLS) && defined(HARD_CODED_NUM_STACKS) && defined(HARD_CODED_NUM_DECKS)))
         fc_solve_instance_t * instance = user->instance;
+#endif
 
         return
             fc_solve_state_as_string(