#2536: version.cpp compiling errors
------------------------------------+---------------------------
        Reporter:  jaakan           |        Type:  bug
          Status:  new              |    Priority:  normal
       Milestone:  unspecified      |   Component:  Build system
         Version:  git/master       |    Keywords:
Operating System:  GNU/Linux 64bit  |  Blocked By:
        Blocking:                   |
------------------------------------+---------------------------
 last commit 564c5a4ee86da5ca48dac2ef0ce3d0b209a842a1 on git/master

 {{{

 g++ -DHAVE_CONFIG_H -I. -I..  -DYY_NO_INPUT -D_GNU_SOURCE=1 -D_REENTRANT
 -I/usr/include/SDL    -I/usr/include/libpng12     -pthread
 -I/usr/include/freetype2 -I/usr/include/fribidi    -DDEBUG
 -DWZ_DATADIR="\"/usr/local/share/warzone2100\""
 -DLOCALEDIR="\"/usr/local/share/locale\"" -I.. -I../lib/ivis_opengl  -O0
 -g -Werror -Wno-enum-compare -Wall -Wextra -Wno-unused-parameter -Wno-
 sign-compare -Wcast-align -Wwrite-strings -Wpointer-arith -Wno-format-
 security -fstack-protector -MT version.o -MD -MP -MF .deps/version.Tpo -c
 -o version.o version.cpp
 version.cpp:98: error: operator '==' has no left operand
 version.cpp:114: error: operator '==' has no left operand
 version.cpp: In function ‘unsigned int version_getRevision()’:
 version.cpp:43: error: return-statement with no value, in function
 returning ‘unsigned int’
 cc1plus: warnings being treated as errors
 version.cpp:44: error: no return statement in function returning non-void
 version.cpp: In function ‘const char* version_getVersionString()’:
 version.cpp:68: error: expected primary-expression before ‘!=’ token
 make[3]: *** [version.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

 }}}

 gcc --version
 gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5

 uname -a
 Linux MYTH64 2.6.35-27-generic #48-Ubuntu SMP Tue Feb 22 20:25:46 UTC 2011
 x86_64 GNU/Linux

 Mythbuntu 10.10 x64

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

Reply via email to