Re: Compiler ABI changes and XPCOM components

Pierre Phaneuf <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpcom
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Marcus Daniels wrote:

> Hmm, here's what I see in the GCC 3.1 sources:
> 
>    if (!warned++)
>      warning ("`%s' is obsolete; g++ vtables are now COM-compatible by
> default",
>               IDENTIFIER_POINTER (name));
> 
>    return NULL_TREE;

Says it all. Obsolete because it is now the default, so just don't worry
and use it.

An autoconf test might want to use -Werror, so that if you get a
warning, it counts as failed and we don't use it.

You could shove the attribute in NS_NO_VTABLE. In fact, I could swear
there used to be something like that for Macintosh a long time ago. Darn
it, I can't find it!

Anyone with a Macintosh and a COM development environment will be able
to look up the declaration of Microsoft's IUnknown, because it uses it.
I'm a Linux geek, so I'm a little helpless about that.

-- 
Pierre Phaneuf
http://advogato.org/person/pphaneuf/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.