On Tue, 13 Oct 2009, Jacob Meuser wrote:
> On Mon, Oct 12, 2009 at 09:37:21PM -0700, Brian wrote:
>
> this has been discussed before ...
What about removing the warning? Not the alignment check, just
the (meaningless) warning...
ciao
-dav
$OpenBSD$
--- libavcodec/dsputil.c.orig Tue Oct 13 08:41:53 2009
+++ libavcodec/dsputil.c Tue Oct 13 08:43:07 2009
@@ -4301,16 +4301,8 @@ int ff_check_alignment(void){
DECLARE_ALIGNED_16(int, aligned);
if((intptr_t)&aligned & 15){
- if(!did_fail){
-#if HAVE_MMX || HAVE_ALTIVEC
- av_log(NULL, AV_LOG_ERROR,
- "Compiler did not align stack variables. Libavcodec has been
miscompiled\n"
- "and may be very slow or crash. This is not a bug in
libavcodec,\n"
- "but in the compiler. You may try recompiling using gcc >=
4.2.\n"
- "Do not report crashes to FFmpeg developers.\n");
-#endif
+ if(!did_fail)
did_fail=1;
- }
return -1;
}
return 0;