[vlc-devel] commit: cmml: *Really* fix compilation warning. ( Rémi Duraffort )

git version control git at videolan.org
Thu Nov 13 22:38:48 CET 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Nov 13 22:37:05 2008 +0100| [c22afa5f197adc5bca3e15eae4132b8fbb0e642f] | committer: Rémi Duraffort 

cmml: *Really* fix compilation warning.
(Don't use dummy code to hide these warnings)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c22afa5f197adc5bca3e15eae4132b8fbb0e642f
---

 modules/codec/cmml/history.c |   14 ++++----------
 1 files changed, 4 insertions(+), 10 deletions(-)

diff --git a/modules/codec/cmml/history.c b/modules/codec/cmml/history.c
index ff29847..702ae30 100644
--- a/modules/codec/cmml/history.c
+++ b/modules/codec/cmml/history.c
@@ -44,7 +44,9 @@
 /*****************************************************************************
  * Local prototypes
  *****************************************************************************/
+#ifdef HISTORY_DEBUG
 static void history_Dump( history_t *p_history );
+#endif
 
 /*****************************************************************************
  * Local structure lock
@@ -68,16 +70,6 @@ history_t *history_New( void )
        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;
 }
 
@@ -98,6 +90,7 @@ bool history_GoBackSavingCurrentItem ( history_t *p_history,
     return true;
 }
 
+#ifdef HISTORY_DEBUG
 static void history_Dump( history_t *p_history )
 {
     unsigned int i_count;
@@ -124,6 +117,7 @@ static void history_Dump( history_t *p_history )
         }
     }
 }
+#endif
 
 bool history_GoForwardSavingCurrentItem ( history_t *p_history,
                                                 history_item_t *p_item )




More information about the vlc-devel mailing list