[colobot] 313/390: Fixed compilation on old versions of GCC
Didier Raboud
odyx at moszumanska.debian.org
Fri Jun 12 14:21:59 UTC 2015
This is an automated email from the git hooks/post-receive script.
odyx pushed a commit to branch upstream/latest
in repository colobot.
commit fa13d2bb72dc9437ea4cb81d2f416c7f35f601d8
Author: krzys-h <krzys_h at interia.pl>
Date: Mon Apr 6 19:22:26 2015 +0200
Fixed compilation on old versions of GCC
It's the first time I saw gcc complain about something being not implemented IN THE COMPILER ITSELF o.O
In file included from /home/travis/build/colobot/colobot/src/object/auto/autoegg.cpp:25:0:
/home/travis/build/colobot/colobot/src/object/brain.h:81:28: sorry, unimplemented: non-static data member initializers
/home/travis/build/colobot/colobot/src/object/brain.h:81:28: error: ISO C++ forbids in-class initialization of non-const static member ‘readOnly’
---
src/object/brain.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/object/brain.h b/src/object/brain.h
index de3c007..143f177 100644
--- a/src/object/brain.h
+++ b/src/object/brain.h
@@ -78,7 +78,7 @@ struct Program
{
CScript* script;
std::string filename;
- bool readOnly = false;
+ bool readOnly;
};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git
More information about the Pkg-games-commits
mailing list