Commit c22afa5f authored by Rémi Duraffort's avatar Rémi Duraffort

cmml: *Really* fix compilation warning.

(Don't use dummy code to hide these warnings)
parent c87ca8bb
...@@ -44,7 +44,9 @@ ...@@ -44,7 +44,9 @@
/***************************************************************************** /*****************************************************************************
* Local prototypes * Local prototypes
*****************************************************************************/ *****************************************************************************/
#ifdef HISTORY_DEBUG
static void history_Dump( history_t *p_history ); static void history_Dump( history_t *p_history );
#endif
/***************************************************************************** /*****************************************************************************
* Local structure lock * Local structure lock
...@@ -68,16 +70,6 @@ history_t *history_New( void ) ...@@ -68,16 +70,6 @@ history_t *history_New( void )
return NULL; return NULL;
} }
#ifndef HISTORY_DEBUG
/* make dummy reference to history_Dump to avoid compiler warnings */
while (0)
{
void *p_tmp;
p_tmp = history_Dump;
}
#endif
return p_new_history; return p_new_history;
} }
...@@ -98,6 +90,7 @@ bool history_GoBackSavingCurrentItem ( history_t *p_history, ...@@ -98,6 +90,7 @@ bool history_GoBackSavingCurrentItem ( history_t *p_history,
return true; return true;
} }
#ifdef HISTORY_DEBUG
static void history_Dump( history_t *p_history ) static void history_Dump( history_t *p_history )
{ {
unsigned int i_count; unsigned int i_count;
...@@ -124,6 +117,7 @@ static void history_Dump( history_t *p_history ) ...@@ -124,6 +117,7 @@ static void history_Dump( history_t *p_history )
} }
} }
} }
#endif
bool history_GoForwardSavingCurrentItem ( history_t *p_history, bool history_GoForwardSavingCurrentItem ( history_t *p_history,
history_item_t *p_item ) history_item_t *p_item )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment