#2291: Compiling error fpath.c:344: error: suggest parentheses around ‘&&’ 
within
‘||’
------------------------------------+---------------------
        Reporter:  jaakan           |        Type:  bug
          Status:  new              |    Priority:  normal
       Milestone:  unspecified      |   Component:  other
         Version:  git/master       |    Keywords:
Operating System:  GNU/Linux 64bit  |  Blocked By:
        Blocking:                   |
------------------------------------+---------------------
 Ubuntu 10.10 x64
 gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5

 trunk/master as of nov 2 2010 10:30 pm est

 cc1: warnings being treated as errors
 fpath.c: In function ‘fpathBaseBlockingTile’:
 fpath.c:344: error: suggest parentheses around ‘&&’ within ‘||’
 make[3]: *** [fpath.o] Error 1
 make[3]: Leaving directory `/home/jaakan/warzone/src'
 make[2]: *** [all] Error 2
 make[2]: Leaving directory `/home/jaakan/warzone/src'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/home/jaakan/warzone'
 make: *** [all] Error 2
 jaa...@myth64:~/warzone$


 if ((bits & FEATURE_BLOCKED)
             && (psTile->buildingBits && player == MAX_PLAYERS //
 unsophisticated blocking check used
                 || (psTile->buildingBits & alliancebits[player]) // move
 blocked by friendly building
                 || (moveType == FMT_MOVE && psTile->buildingBits))) //
 other building, and we cannot or do not want to shoot our way through
         {
                 return true;    // move blocked by building, and we cannot
 or do not want to shoot our way through anything
         }

         return (psTile->blockingBits & bits);   //

-- 
Ticket URL: <http://developer.wz2100.net/ticket/2291>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to