diff mem.c @ 2522:e25782262d7d libavcodec

kill warnings patch by (M?ns Rullg?rd <mru inprovide com>)
author michael
date Thu, 24 Feb 2005 19:08:50 +0000
parents d0bcc85d3856
children ef2149182f1c
line wrap: on
line diff
--- a/mem.c	Thu Feb 24 16:39:03 2005 +0000
+++ b/mem.c	Thu Feb 24 19:08:50 2005 +0000
@@ -45,7 +45,9 @@
 void *av_malloc(unsigned int size)
 {
     void *ptr;
+#ifdef MEMALIGN_HACK
     int diff;
+#endif
 
     /* lets disallow possible ambiguous cases */
     if(size > INT_MAX)
@@ -97,7 +99,10 @@
  */
 void *av_realloc(void *ptr, unsigned int size)
 {
+#ifdef MEMALIGN_HACK
     int diff;
+#endif
+
     /* lets disallow possible ambiguous cases */
     if(size > INT_MAX)
         return NULL;