[Widelands-dev] [Merge] lp:~widelands-dev/widelands/compiler_warnings_20170619 into lp:widelands

2017-06-23 Thread noreply
The proposal to merge lp:~widelands-dev/widelands/compiler_warnings_20170619 into lp:widelands has been updated. Status: Needs review => Merged For more details, see: https://code.launchpad.net/~widelands-dev/widelands/compiler_warnings_20170619/+merge/325952 -- Your team Widelands Develope

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/compiler_warnings_20170619 into lp:widelands

2017-06-23 Thread GunChleoc
Excellent :) @bunnybot merge -- https://code.launchpad.net/~widelands-dev/widelands/compiler_warnings_20170619/+merge/325952 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/compiler_warnings_20170619. ___ Mailing lis

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/compiler_warnings_20170619 into lp:widelands

2017-06-22 Thread Klaus Halfmann
Review: Resubmit Supressed the warning locally, created [1699852] for the MapTriangleReg. So when bunnybot is happy this should go in. -- https://code.launchpad.net/~widelands-dev/widelands/compiler_warnings_20170619/+merge/325952 Your team Widelands Developers is subscribed to branch lp:~widel

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/compiler_warnings_20170619 into lp:widelands

2017-06-21 Thread GunChleoc
Yep, those map region templates are complex. Let's open a bug and leave them for another branch. Travis does compile the test code, because its running the tests too. It does not generate the warnings though. You can't rewrite those testing macros, because that's code written by Boost. All you

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/compiler_warnings_20170619 into lp:widelands

2017-06-21 Thread Klaus Halfmann
The later warnings come from the testcode only (I think travis does not comile this). Ill try to get rid of them like you did with the other ones. The first one is a problem with template instantiation. The compiler must instantiate them whenver he needs to, resulting in some duplicate code to be

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/compiler_warnings_20170619 into lp:widelands

2017-06-20 Thread GunChleoc
This: compiler_warnings_20170619/src/wui/interactive_base.cc:168:34: warning: instantiation of function 'Widelands::MapTriangleRegion, unsigned short>::MapTriangleRegion' required here, but no definition is available [-Wundefined-func-template] Widelands::MapTriangleR

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/compiler_warnings_20170619 into lp:widelands

2017-06-20 Thread Klaus Halfmann
Comipling this again (after pulling from _this_ bracnh :-) still get warning like: compiler_warnings_20170619/src/wui/interactive_base.cc:168:34: warning: instantiation of function 'Widelands::MapTriangleRegion, unsigned short>::MapTriangleRegion' required here, but no definition is

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/compiler_warnings_20170619 into lp:widelands

2017-06-20 Thread GunChleoc
I am still working on the format macros - older versions of Clang don't recognize the -pedantic version. In the meantime, are you still getting any warnings except for the "-Wundefined-func-template" ones with the map regions? -- https://code.launchpad.net/~widelands-dev/widelands/compiler_warn

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/compiler_warnings_20170619 into lp:widelands

2017-06-19 Thread GunChleoc
Thanks for setting this up. I have copied over the information from the commit messages. >From the Travis logs, I noticed that GCC uses "-Wformat" and Clang uses >"-Wformat-pedantic". I have an idea for a more elegant solution for this. I am >against switching off the printf warnings, because t

[Widelands-dev] [Merge] lp:~widelands-dev/widelands/compiler_warnings_20170619 into lp:widelands

2017-06-19 Thread GunChleoc
The proposal to merge lp:~widelands-dev/widelands/compiler_warnings_20170619 into lp:widelands has been updated. Commit Message changed to: Fixed diverse compiler warnings: - Fixed floor/double warnings - Removed assertion in Battle::opponent that would always evaluate to true - Switched off "di

[Widelands-dev] [Merge] lp:~widelands-dev/widelands/compiler_warnings_20170619 into lp:widelands

2017-06-19 Thread bunnybot
Continuous integration builds have changed state: Travis build 2325. State: passed. Details: https://travis-ci.org/widelands/widelands/builds/244653007. Appveyor build 2153. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_compiler_w

[Widelands-dev] [Merge] lp:~widelands-dev/widelands/compiler_warnings_20170619 into lp:widelands

2017-06-19 Thread Klaus Halfmann
Klaus Halfmann has proposed merging lp:~widelands-dev/widelands/compiler_warnings_20170619 into lp:widelands. Requested reviews: GunChleoc (gunchleoc) For more details, see: https://code.launchpad.net/~widelands-dev/widelands/compiler_warnings_20170619/+merge/325952 This is the alternative fo