Closed Bug 67672 Opened 25 years ago Closed 24 years ago

Invalid assignment of pointer to int in PlugletViewMotif.cpp

Categories

(Core Graveyard :: Java-Implemented Plugins, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED WORKSFORME

People

(Reporter: marcus, Assigned: blackconnect)

Details

I'm currently trying to build BlackConnect. While compiling java/plugins/src/PlugletViewMotif.cpp, I get the following warning: PlugletViewMotif.cpp c++ -I/usr/java/jdk1.3.0_01/include -I/usr/java/jdk1.3.0_01/include/linux -DWIDGET_DLL=\"libwidget_gtk.so\" -DGFXWIN_DLL=\"libgfx_gtk.so\" -I/usr/lib/glib/include -I/usr/X11R6/include -D_REENTRANT -DOJI_DISABLE -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wbad-function-cast -Wcast-align -Woverloaded-virtual -Wsynth -pedantic -Wno-long-long -pthread -O -DNDEBUG -DTRIMMED -o PlugletViewMotif.o -c -DOSTYPE=\"Linux2.2\" -DOJI -I../../../dist/include -I../../../dist/include -I/usr/X11R6/include -fPIC -I/usr/java/jdk1.3.0_01/include -I/usr/java/jdk1.3.0_01/include/linux -DWIDGET_DLL=\"libwidget_gtk.so\" -DGFXWIN_DLL=\"libgfx_gtk.so\" -I/usr/lib/glib/include -I/usr/X11R6/include -D_REENTRANT -DOJI_DISABLE -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wbad-function-cast -Wcast-align -Woverloaded-virtual -Wsynth -pedantic -Wno-long-long -pthread -O -DNDEBUG -DTRIMMED -DMOZILLA_CLIENT -include ../../../config-defs.h -Wp,-MD,.deps/PlugletViewMotif.pp PlugletViewMotif.cpp PlugletViewMotif.cpp: In method `PRBool PlugletViewMotif::SetWindow(nsPluginWindow *)': PlugletViewMotif.cpp:115: warning: initialization to `int' from `nsPluginPort *' lacks a cast I think that this should be fixed, because sizeof(void*) could be different from sizeof(int), and a conversion from one to the other could remove significant bits. Later, the ContainerWindowID assigned in line 115 is compared to WindowID, which is intialised to 0, and if the two are equal, an error is reported. Now, if ContainerWindowID is non-zero only in the bits which the conversion removes, the comparision will give a faulty result of true. TIA, Marcus Fellinger Tomcat Computer GmbH
Marking NEW to get someone with more experience to look at it.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Status: NEW → ASSIGNED
Changing QA contact
QA Contact: geetha.vaidyanaathan → avm
LXR doesn't find PlugletViewMotif.cpp anymore. Shouldn't this bug be claused as the file doesn't exist anymore
Hi Marcus, PlugletViewMotif.cpp is present in sources and at the LXR: http://lxr.mozilla.org/mozilla/source/java/plugins/src/PlugletViewMotif.cpp But looks like this bug is already gone - it isn't reproduced.
Errr, sorry for that. I later noticed that I only looked for it in the Seamonkey module. However, since the bug seems to have been fixed, it should probably be marked as RESOLVED or VERIFIED?
Ok, please change state to RESOLVED and I'll verify it.
Marking as RESOLVED/WORKSFORME as by Alexeis comment
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
Verified.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.