To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=93984
                 Issue #|93984
                 Summary|Missing extern "C" declaration causes compiler warning
                        |/error
               Component|framework
                 Version|DEV300m30
                Platform|PC
                     URL|
              OS/Version|Solaris
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|PATCH
                Priority|P2
            Subcomponent|code
             Assigned to|mmeeks
             Reported by|christianlins





------- Additional comments from [EMAIL PROTECTED] Wed Sep 17 11:54:55 +0000 
2008 -------
In file sfx2/source/appl/shutdowniconunx.cxx around line 335 there is a 
function call

gtk_menu_popup( GTK_MENU( pMenu ), NULL, NULL,
                                        layout_menu, NULL, 0, event->time );

that causes a compiler warning (treated as error) when using the Sun compilers 
on Solaris/Intel.
If I got it right this happens because the function pointer layout_menu points 
to a function that is NOT declared as "extern "C"" but the gtk_menu_popup 
requires this.
As a simple workaround I added "extern "C"" to the layout_menu declaration (see 
patch). I do not know if this change affects the compilation on other compilers.

---------------------------------------------------------------------
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]

Reply via email to