--===============28920665837610149== Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-03=_Sx+H/CTnkfNIwgb"; charset="us-ascii" Content-Transfer-Encoding: 7bit --Boundary-03=_Sx+H/CTnkfNIwgb Content-Type: multipart/mixed; boundary="Boundary-01=_Fx+H/4OQU0rnEhf" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_Fx+H/4OQU0rnEhf Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello, noatun/modules/winskin/vis/visqueue.cpp chokes during compilation on g++ 3.= 3,=20 with -pedantic -ansi ("ISO C++ does not allow variable-sized arrays"). The= =20 attached patch corrects the problem. It's binary compatible (the changed=20 member is private and the class has no friends). =2D-=20 Thiago Macieira - Registered Linux user #65028 thiagom@mail.com =20 ICQ UIN: 1967141 PGP/GPG: 0x6EF45358; fingerprint: E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358 --Boundary-01=_Fx+H/4OQU0rnEhf Content-Type: text/x-diff; charset="us-ascii"; name="noatun-winskin-vis.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="noatun-winskin-vis.diff" Index: visQueue.cpp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/kde/kdemultimedia/noatun/modules/winskin/vis/visQueue.cpp,v retrieving revision 1.2 diff -u -3 -p -r1.2 visQueue.cpp =2D-- visQueue.cpp 1 Dec 2001 01:13:12 -0000 1.2 +++ visQueue.cpp 24 Jul 2003 14:21:06 -0000 @@ -16,28 +16,18 @@ =20 VISQueue::VISQueue(int elements) { this->elements=3Delements; =2D int i; =2D visArrayQueue=3Dnew (std::vector*[elements]); =2D for(i=3D0;i; =2D } =2D + visArrayQueue=3Dnew std::vector[elements]; } =20 VISQueue::~VISQueue() { =2D int i; =2D =2D for(i=3D0;i* VISQueue::getElement(int i) { if ( (i < 0) || (i>elements) ) { =2D return visArrayQueue[0]; + return &visArrayQueue[0]; } =2D return visArrayQueue[i]; + return &visArrayQueue[i]; } =20 =20 Index: visQueue.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/kde/kdemultimedia/noatun/modules/winskin/vis/visQueue.h,v retrieving revision 1.4 diff -u -3 -p -r1.4 visQueue.h =2D-- visQueue.h 29 Aug 2002 03:01:06 -0000 1.4 +++ visQueue.h 24 Jul 2003 14:21:06 -0000 @@ -20,7 +20,7 @@ class VISQueue { =20 int elements; =2D std::vector** visArrayQueue;=20 + std::vector* visArrayQueue;=20 =20 public: VISQueue(int elements); --Boundary-01=_Fx+H/4OQU0rnEhf-- --Boundary-03=_Sx+H/CTnkfNIwgb Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQA/H+xSM/XwBW70U1gRAoREAJ9S14p10lQLnyKOuKoZL0iP7f+vvwCfcPdQ gvU2lIuIIoigpskcmJmG3Ds= =evgF -----END PGP SIGNATURE----- --Boundary-03=_Sx+H/CTnkfNIwgb-- --===============28920665837610149== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kde-multimedia mailing list kde-multimedia@mail.kde.org http://mail.kde.org/mailman/listinfo/kde-multimedia --===============28920665837610149==--