To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=48819
                  Issue #:|48819
                  Summary:|np_sdk: some potentialy dangerous warnings
                Component:|porting
                  Version:|680m100
                 Platform:|PC
                      URL:|
               OS/Version:|Linux
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|PATCH
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|mh
              Reported by:|pmladek





------- Additional comments from [EMAIL PROTECTED] Fri May  6 07:20:22 -0700 
2005 -------
The following warnings are printed when compiling the module np_sdk on Linux:
npunix.c: In function âPrivate_GetValueâ:
npunix.c:289: warning: no return statement in function returning non-void
npunix.c: In function âPrivate_SetValueâ:
npunix.c:296: warning: no return statement in function returning non-void
npunix.c: In function âPrivate_GetJavaClassâ:
npunix.c:301: warning: implicit declaration of function âNPP_GetJavaClassâ
npunix.c:301: warning: initialization makes pointer from integer without a cast

The warning: control reaches end of non-void function, could point out a real
bug. So, we want to fix all packages to be built without this warnig.

The warnings on npunix.c:301 are visible if we compile OOo using the system
mozilla. The function NPP_GetJavaClass is declared in mozilla-1.7.7 the folowing
way:

--- cut /opt/mozilla/include/plugin/npapi.h ---
#ifdef OJI 
jref    NP_LOADDS NPP_GetJavaClass(void);
#endif 
--- cut /opt/mozilla/include/plugin/npapi.h ---

The implicit declaration and the consequent automatic cast from pointer to
integer make problems on 64-bit architectures where the integer size is 32bit
and the pointer size is 64bit. Note that integer is the implicit return value.

I'll attach a patch that fixes all these warnings.

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