changeset 9166:40738baaafc2 libavcodec

Add av_uninit to vsrcBuc variable to work around some 'may be used uninitialized' warnings.
author diego
date Sat, 14 Mar 2009 19:11:56 +0000
parents b3a081ee40a9
children fd8b4aa6e493
files ppc/h264_altivec.c ppc/h264_template_altivec.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ppc/h264_altivec.c	Sat Mar 14 17:20:28 2009 +0000
+++ b/ppc/h264_altivec.c	Sat Mar 14 19:11:56 2009 +0000
@@ -201,7 +201,7 @@
     register int loadSecond     = (((unsigned long)src) % 16) <= 7 ? 0 : 1;
     register int reallyBadAlign = (((unsigned long)src) % 16) == 15 ? 1 : 0;
 
-    vec_u8 vsrcAuc, vsrcBuc, vsrcperm0, vsrcperm1;
+    vec_u8 vsrcAuc, av_uninit(vsrcBuc), vsrcperm0, vsrcperm1;
     vec_u8 vsrc0uc, vsrc1uc;
     vec_s16 vsrc0ssH, vsrc1ssH;
     vec_u8 vsrcCuc, vsrc2uc, vsrc3uc;
--- a/ppc/h264_template_altivec.c	Sat Mar 14 17:20:28 2009 +0000
+++ b/ppc/h264_template_altivec.c	Sat Mar 14 19:11:56 2009 +0000
@@ -92,7 +92,7 @@
     register int loadSecond = (((unsigned long)src) % 16) <= 7 ? 0 : 1;
     register int reallyBadAlign = (((unsigned long)src) % 16) == 15 ? 1 : 0;
 
-    vec_u8 vsrcAuc, vsrcBuc, vsrcperm0, vsrcperm1;
+    vec_u8 vsrcAuc, av_uninit(vsrcBuc), vsrcperm0, vsrcperm1;
     vec_u8 vsrc0uc, vsrc1uc;
     vec_s16 vsrc0ssH, vsrc1ssH;
     vec_u8 vsrcCuc, vsrc2uc, vsrc3uc;