From: Charles P W. <cpw...@us...> - 2007-11-06 16:09:06
|
On recent Linux versions it the %z eliminates warnings. I typically=20 prefer to compile with -Wall -Werror, as it catches problems that=20 otherwise go unnoticed. There may be a -Wno-something flag that will skip = this particular warning. Charles sip...@li... wrote on 11/06/2007 10:25:26=20 AM: > Peter, >=20 > Do you have examples of platforms where this change could prevent=20 > sipp to compile ? I met again this ?Content-length: zu? problem on=20 > my HP=5FUX platform (which I currently use for other investigationss)=20 > and remembered that I committed this fis into the 2.0 branch, but=20 > not into the trunk.=20 >=20 > Olivier Boulkroune >=20 >=20 > De : Peter Higginson [mailto:Pet...@ne...]=20 > Envoy=E9 : mardi 6 novembre 2007 15:59 > =C0 : obo...@us...;=20 sip...@li... > Objet : RE: [Sipp-commits] SF.net SVN: sipp: [335] sipp/trunk >=20 > Olivier, >=20 > My memory is that this is one of those changes that yo-yo in and=20 > out. Basically older compilers do not understand ?z? and more modern > ones require it. (?z? tells the modern compiler to expect an integer > of type size=5Ft as a result of pointer arithmetic.) >=20 > Peter >=20 > Peter Higginson > Newport Networks Ltd, > Direct line 01494 470694 > http://www.newport-networks.com/ >=20 > -----Original Message----- > From: sip...@li... [mailto:sipp- > com...@li...] On Behalf Of=20 > obo...@us... > Sent: 06 November 2007 10:18 > To: sip...@li... > Subject: [Sipp-commits] SF.net SVN: sipp: [335] sipp/trunk >=20 > Revision: 335 > http://sipp.svn.sourceforge.net/sipp/?rev=3D335&view=3Drev > Author: oboulkroune > Date: 2007-11-06 02:18:07 -0800 (Tue, 06 Nov 2007) >=20 > Log Message: > ----------- > Fix: report fix from rev 236 into the trunk >=20 > Revision Links: > -------------- > http://sipp.svn.sourceforge.net/sipp/?rev=3D236&view=3Drev >=20 > Modified Paths: > -------------- > sipp/trunk/call.cpp > sipp/trunk/sipp.hpp >=20 > Modified: sipp/trunk/call.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 > --- sipp/trunk/call.cpp 2007-11-05 10:26:04 UTC (rev 334) > +++ sipp/trunk/call.cpp 2007-11-06 10:18:07 UTC (rev 335) > @@ -2239,7 +2239,7 @@ >=20 > if (body && dest - body > 4 && dest - body < 100004) { > char tmp =3D length=5Fmarker[5]; > - sprintf(length=5Fmarker, "%5zu", dest - body - 4 + len=5Foffset); > + sprintf(length=5Fmarker, "%5u", dest - body - 4 + len=5Foffset); > length=5Fmarker[5] =3D tmp; > } else { > // Other cases: Content-Length is 0 >=20 > Modified: sipp/trunk/sipp.hpp > =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 > --- sipp/trunk/sipp.hpp 2007-11-05 10:26:04 UTC (rev 334) > +++ sipp/trunk/sipp.hpp 2007-11-06 10:18:07 UTC (rev 335) > @@ -93,7 +93,7 @@ >=20 > /************************** Constants **************************/ >=20 > -#define SIPP=5FVERSION 20071105 > +#define SIPP=5FVERSION 20071106 > #define T=5FUDP 0 > #define T=5FTCP 1 > #define T=5FTLS 2 >=20 >=20 > This was sent by the SourceForge.net collaborative development=20 > platform, the world's largest Open Source development site. >=20 >=20 ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F > Sipp-commits mailing list > Sip...@li... > https://lists.sourceforge.net/lists/listinfo/sipp-commits >=20 >=20 >=20 ---------------------------------------------------------------------------= ------------------ > This e-mail may contain confidential and/or privileged information. > If you are not the intended recipient (or have received this e-mail=20 > in error) please > notify the sender immediately and delete this e-mail. Any=20 > unauthorized copying, > disclosure or distribution of the contents in this e-mail is=20 > strictly forbidden. >=20 ---------------------------------------------------------------------------= ------------------ > Newport Networks Limited is registered in England. Registration=20 > number 4067591. > Registered office: 6 St. Andrew Street, London EC4A 3LX >=20 ---------------------------------------------------------------------------= ------------------ >=20 ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F > Sipp-commits mailing list > Sip...@li... > https://lists.sourceforge.net/lists/listinfo/sipp-commits |