To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=54452 Issue #:|54452 Summary:|module connectivity: some casts needes to correctly |compile with gcc4/MacOSX Component:|porting Version:|680m127 Platform:|Macintosh URL:| OS/Version:|Mac OS X Status:|NEW Status whiteboard:| Keywords:| Resolution:| Issue type:|PATCH Priority:|P3 Subcomponent:|code Assigned to:|fheckl Reported by:|fheckl
------- Additional comments from [EMAIL PROTECTED] Sun Sep 11 06:44:45 -0700 2005 ------- One of the example lines is connectivity/source/drivers/mozab/bootstrap/MNSProfile.cxx:399 which contains: if (shutDownType == SHUTDOWN_PERSIST || shutDownType == SHUTDOWN_CLEANSE) { where SHUTDOWN_PERSIST and SHUTDOWN_CLEANSE are elements of an unnamed enum type If this code is compiled unchanged, gcc reports: error: 'nsIProfile::<anonymous enum>' is/uses anonymous type error: trying to instantiate 'template<class C> sal_Bool com::sun::star::uno::operator==(const com::sun::star::uno::Any&, const C&)' However, if you change it to: if (shutDownType == (PRUint32)SHUTDOWN_PERSIST || shutDownType == (PRUint32) SHUTDOWN_CLEANSE) { everything works fine. I don't know if this is a bug in Apple's gcc4 or in the OOo codebase but I'll provide a patch here anyway. (The problem occurs also in different places). --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]