Mechanized Assault & eXploration Reloaded



#1 Dec 25, 2008 8:25 am
balthasar Offline
Mitglied
Registered since: Nov 16, 2008
Posts: 11


Subject: (client.cpp) taking address of temporary
Hi,

while compiling maxr I noticed the compiler warnings "taking address of temporary" in client.cpp, lines 1386, 1390 and 1394. It is generally a bad idea to do this (even though you use the address only on the following codeline) because you cannot know how a compiler will handle temporary variables (I don't think there is a standard for this). Maybe you change the code as suggested.

Attachments:
File Type Information for: txt  client.cpp.patch.txt
Downloads: 445
Filesize: 1.88 KB

↑  ↓

#2 Dec 25, 2008 10:58 am
beko beko Offline
Developer, Administrator
Registered since: Jun 04, 2004
Posts: 2,279


Subject: Re: (client.cpp) taking address of temporary
thanks for the patch. It's a last minute issue and Eiko knows already about it. Sadly a lot of new bugs made it last minute Disappointed
Bernd Kosmahl
"Sir, we are surrounded!" - "Great - we can attack in any direction."
↑  ↓

Pages (1): 1


All times are GMT +02:00. Current time: 12:57 am.