[Ffmpeg-devel] [PATCH] fix lls.c compile warning

Limin Wang lance.lmwang
Thu Feb 8 12:43:08 CET 2007


Hi,

Only fixed the first warning when build ffmpeg, If have time, I'll
try to cleanup more. I have test it with "gcc -D TEST -o lls lls.c -lm"
without issue. Please review it.

Thanks,
Limin
-------------- next part --------------
Index: lls.c
===================================================================
--- lls.c	(revision 7867)
+++ lls.c	(working copy)
@@ -53,8 +53,8 @@
 
 void av_solve_lls(LLSModel *m, double threshold, int min_order){
     int i,j,k;
-    double (*factor)[MAX_VARS+1]= &m->covariance[1][0];
-    double (*covar )[MAX_VARS+1]= &m->covariance[1][1];
+    double (*factor)[MAX_VARS+1]= (double(*)[MAX_VARS+1])&m->covariance[1][0];
+    double (*covar )[MAX_VARS+1]= (double(*)[MAX_VARS+1])&m->covariance[1][1];
     double  *covar_y            =  m->covariance[0];
     int count= m->indep_count;
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070208/88ce4fcf/attachment.pgp>



More information about the ffmpeg-devel mailing list