News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Strange warnings when compiling CVS...

Started by rickg22, November 21, 2005, 02:59:10 AM

Previous topic - Next topic

Michael

Quote from: thomas on December 15, 2005, 01:12:23 PM
No.

EDIT:

Slightly longer answer:
Technically, yes, but
- it is a lot more complicated
- you may have to create a temporary object (I am not sure if you can trick the compiler to do it on a pointer)
- you still must #undef offsetof, so you use preprocessor commands either way
- you need a different calling convention, meaning you have to rewrite the existing code
- you have additional constraints that offsetof has not (so it may not always work)
- it is still a hack

Thank you very much for the longer answer...I just was wondering why :D.

Yes, then I agree with you. In such a case, the use of a macro seems to be a good solution.

Best wishes,
Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

thomas

I never committed that hack to SVN.  :)
Yiannis wanted to test it for a while first, he'll eventually add it if it works.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

mandrav

Quote from: thomas on December 18, 2005, 02:42:23 AM
I never committed that hack to SVN.  :)
Yiannis wanted to test it for a while first, he'll eventually add it if it works.

Seems to work fine, so it's back in HEAD.
Be patient!
This bug will be fixed soon...