[Kde-games-devel] Review Request 120297: Patch to avoid build failure of bovo

Marko Käning mk-lists at email.de
Sat Sep 20 13:38:25 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/120297/
-----------------------------------------------------------

Review request for KDE Games, Ian Wadham and Raymond Wooninck.


Repository: bovo


Description
-------

Errors like this break bovo's build on OSX and Linux
```
     /Users/marko/WC/KDECI-builds/bovo/ai/aron/aiboard.cc:450:11: error: non-constant-expression cannot
       be narrowed from type 'int' to 'usi' (aka        'unsigned short') in initializer list [-Wc++11-narrowing]
        LEFT | UP,
        ^~~~~~~~~
```
due to non-constant expressions being generated by the compiler.

---

Still, this patch alone doesn't look nice. I think re-defining those constants FOUR times should be avoided. 


Diffs
-----

  ai/aron/aiboard.cc 91d8192 
  game/game.cc c000a89 

Diff: https://git.reviewboard.kde.org/r/120297/diff/


Testing
-------

Builds fine with this patch applied.


Thanks,

Marko Käning

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-games-devel/attachments/20140920/d4d84337/attachment.html>


More information about the kde-games-devel mailing list