The International Simutrans Forum
September 10, 2010, 08:45:18 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
The Simutrans Blog
Interesting news about Simutrans World and more.
Home
Help
Login
Register
The International Simutrans Forum
>
Requests and Discussion
>
Development and Bug Reports
>
Incorporated Patches and Solved Bug Reports
(Moderator:
Dwachs
) > Topic:
Fix compilation failure on gcc... by being const-correct
Pages: [
1
]
Go Down
Print
Author
Topic: Fix compilation failure on gcc... by being const-correct (Read 172 times)
0 Members and 1 Guest are viewing this topic.
neroden
Offline
Posts: 427
Nathanael Nerode
Fix compilation failure on gcc... by being const-correct
«
on:
July 10, 2010, 11:15:34 PM »
That 'casting away constness' bug? Recent changes caused it to turn into a failure-to-compile bug on gcc. (Sometimes the compiler believes you if you tell it that something is const....)
I fixed it. The function returns a non-const value now. In addition, a section of code is restructured to use a modifiable lvalue rather than an rvalue. Patch is attached. (edit: compiles and runs.)
climate-compilation-fix.diff
(1.16 KB - downloaded 15 times.)
«
Last Edit: July 11, 2010, 05:04:26 AM by neroden
»
Logged
neroden
Offline
Posts: 427
Nathanael Nerode
Re: Fix compilation failure on gcc... by being const-correct
«
Reply #1 on:
July 11, 2010, 05:00:28 PM »
You can forget this patch as the compilation failure was fixed another way. :-)
Logged
Pages: [
1
]
Go Up
Print
The International Simutrans Forum
>
Requests and Discussion
>
Development and Bug Reports
>
Incorporated Patches and Solved Bug Reports
(Moderator:
Dwachs
) > Topic:
Fix compilation failure on gcc... by being const-correct
Jump to:
Please select a destination:
-----------------------------
Information and Announcements
-----------------------------
=> Information and announcements
===> Simutrans Forum Rules and Guidelines
===> Archived Announcements
=> Download Simutrans
-----------------------------
Requests and Discussion
-----------------------------
=> Help Requests
=> Extension Requests
=> Development and Bug Reports
===> Patches releases
===> Considered Patches
===> Incorporated Patches and Solved Bug Reports
===> Denied Patches
===> Simutrans Experimental branch
=====> Solved Bug Reports
=> Documentation, Resources and Sites
===> Tutorials
===> Documentation and manuals
===> Translator
===> Tools
===> Simutrans forum and portal
=> Simutrans Discussion
===> Saved Games and Screenshots
===> Arena
=====> Simutrans Monthly Screenshot Contest Archive
===> Game Servers
===> Praises
-----------------------------
PakSets
-----------------------------
=> Pak64
===> Pak64 Bug Reports
===> Pak64 Add-ons and Graphics
=> Pak96
===> Pak96 Bug Reports
===> Pak96 Add-ons and Graphics
=> Pak128
===> Pak128 Bug Reports
===> Pak128 Add-ons and Graphics
=> pak128.Britain
===> pak128.Britain Bug Reports
===> pak128.Britain Experimental
=====> pak128.Britain Experimental Bug Reports
=> Other paksets
===> pakGerman
-----------------------------
Language boards
-----------------------------
=> CS - Česky (Czech)
===> Poradna
===> Tvorba
=> DE - Deutsch (German)
=> ES - Español (Spanish)
===> Descargas
=> FR - Français (French)
=> IT - Italiano (Italian)
=> NL - Nederlands (Dutch)
=> PT - Português (Portuguese)
===> Tutoriais e Ajuda
===> Add-ons e Desenvolvimento
=> SV - Svenska (Swedish)
=> ZH - 中文 (Chinese)
Loading...