softdevice compile fix for gcc > 3.x.x

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Here is a diff to get the softdevice plugin compiled with recent gcc version.

--- utils.c_ori 2005-06-16 12:56:32.000000000 +0200
+++ utils.c     2005-06-16 12:56:53.000000000 +0200
@@ -403,8 +403,8 @@
                MOVNTQ" %%mm6, 48(%1)\n"
                MOVNTQ" %%mm7, 56(%1)\n"
                :: "r" (from), "r" (to) : "memory");
-               ((const unsigned char *)from)+=64;
-               ((unsigned char *)to)+=64;
+                from=((const unsigned char *) from)+64;
+                to=((unsigned char *)to)+64;
        }

 //     printf(" %d %d\n", (int)from&1023, (int)to&1023);
@@ -492,8 +492,8 @@
                MOVNTQ" %%mm6, 48(%1)\n"
                MOVNTQ" %%mm7, 56(%1)\n"
                :: "r" (from), "r" (to) : "memory");
-               ((const unsigned char *)from)+=64;
-               ((unsigned char *)to)+=64;
+                from=((const unsigned char *) from)+64;
+                to=((unsigned char *)to)+64;
        }

 #ifdef USE_MMX2

Regards,

Alex


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux