← Back to team overview

kicad-developers team mailing list archive

Re: Call for help to compile a small test program with g++ version 4.7.3 and more.

 

You can change to %lu to get rid of the warning if you want, otherwise just
ignore the format warning.

Best Regards, Brian.


On 17 June 2013 11:02, Milan Horák <stranger@xxxxxxxxxx> wrote:

> Hello,
>
> I am getting:
>
> g++ -Wall -O2 -I /g/boost_1_53_0 test_polygon_diff.cpp
>
> test_polygon_diff.cpp: In function ‘void dumpPolySet(const
> KI_POLYGON_SET&)’:
> test_polygon_diff.cpp:84:60: warning: format ‘%d’ expects argument of type
> ‘int’, but argument 2 has type ‘std::vector<boost::polygon::**polygon_data<int>
> >::size_type {aka long unsigned int}’ [-Wformat]
> test_polygon_diff.cpp:88:71: warning: format ‘%d’ expects argument of type
> ‘int’, but argument 3 has type ‘std::size_t {aka long unsigned int}’
> [-Wformat]
>
> Am I doing something wrong?
>
> Milan
>
> Dne 17.6.2013 10:15, jp charras napsal(a):
>
>  Some developers know boost::polygon has an issue when compiled with g++
>> 4.7.2 (currently the lasted version on MinGW) using the -O2 (or more)
>> optimization level.
>> I am not 100% sure, however I am guessing this issue was also reported
>> on Linux.
>>
>> The developer of boost::polygon asked me to test (if possible) this
>> issue with g++ 4.7.3 (He has some trouble to reproduce it)
>>
>> I did not found this version for MinGW, and I am reluctant to install
>> this version on my Linux Ubuntu 10 LTS 32 bits (because I found the C
>> compiler v 4.7.3, but not the C++ compiler).
>> Currently I have a 4.6 version which does not create this issue.
>>
>> So I am searching for developers who have G++ 4.7.3 (and/or a more
>> recent version) on their machine to compile and test this program.
>>
>> See
>> https://svn.boost.org/trac/**boost/ticket/7983<https://svn.boost.org/trac/boost/ticket/7983>
>> for the test program and more info
>>
>> Thanks for your help
>>
>>
> ______________________________**_________________
> Mailing list: https://launchpad.net/~kicad-**developers<https://launchpad.net/~kicad-developers>
> Post to     : kicad-developers@lists.**launchpad.net<kicad-developers@xxxxxxxxxxxxxxxxxxx>
> Unsubscribe : https://launchpad.net/~kicad-**developers<https://launchpad.net/~kicad-developers>
> More help   : https://help.launchpad.net/**ListHelp<https://help.launchpad.net/ListHelp>
>

References