You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling with --enable-desync-debug random() is defined twice:
ottd/trunk/src/core/random_func.hpp:88:1: warning: "Random" redefined
ottd/trunk/src/core/random_func.hpp:17:1: warning: this is the location of the previous definition
It seems to me that the # ifdef APPLE in :17 is not needed on my machine (random2.diff). It compiles fine both with and without the desync debug enabled and I didn't find an issue when connecting to the public server when using that diff.
random1.diff also silcences the warnings, but IMO is less preferrable, if the # ifdef can be skipped altogether. But there sure is somewhere a reason for the # ifdef APPLE - which I don't finde at the moment.
/usr/src/OpenTTD/compile/src/video/cocoa/../../core/random_func.hpp:88: error: new declaration 'uint32 Random()'
/usr/powerpc-apple-darwin8/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:3735: error: ambiguates old declaration 'short int Random()'
planetmaker opened the ticket and wrote:
Attachments
Reported version: trunk
Operating system: Mac OS X
This issue was imported from FlySpray: https://bugs.openttd.org/task/3621
The text was updated successfully, but these errors were encountered: