Show whole topic Dec 25, 2008 8:25 am
balthasar Offline
Mitglied
Registered since: Nov 16, 2008
Location: -


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:
client.cpp.patch.txt
Downloads: 501
Filesize: 1.88 KB