Compiler warnings lp:nux

Bug #1032313 reported by MC Return
44
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Nux
Status tracked in 4.0
3.0
Fix Released
Medium
Michi Henning
4.0
Fix Released
Medium
Michi Henning
nux (Ubuntu)
Fix Released
Medium
Michi Henning

Bug Description

./FileManager/NFileManagerGNU.cpp: In member function 'virtual nux::NSerializer* nux::NFileManagerGNU::CreateFileWriter(const TCHAR*, DWORD, nux::LogOutputDevice&)':
./FileManager/NFileManagerGNU.cpp:463:53: warning: 'Pos' may be used uninitialized in this function [-Wuninitialized]
./Logger.cpp:23:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
./GpuDevice.cpp: In constructor 'nux::GpuDevice::GpuDevice(unsigned int, unsigned int, nux::BitmapFormat, Display*, Window, bool, GLXFBConfig, __GLXcontextRec*&, int, int, bool)':
./GpuDevice.cpp:310:12: warning: variable 'Glew_Ok' set but not used [-Wunused-but-set-variable]
./GpuDeviceVertex.cpp: In member function 'int nux::GpuDevice::DrawIndexedPrimitive(nux::ObjectPtr<nux::IOpenGLIndexBuffer>, nux::ObjectPtr<nux::IOpenGLVertexDeclaration>, nux::PRIMITIVE_TYPE, int)':
./GpuDeviceVertex.cpp:158:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
./GraphicsDisplayX11.cpp: In member function 'void nux::GraphicsDisplay::ProcessXEvent(XEvent, bool)':
./GraphicsDisplayX11.cpp:1567:18: warning: 'KeySym XKeycodeToKeysym(Display*, KeyCode, int)' is deprecated (declared at /usr/include/X11/Xlib.h:1695) [-Wdeprecated-declarations]
./GraphicsDisplayX11.cpp:1567:66: warning: 'KeySym XKeycodeToKeysym(Display*, KeyCode, int)' is deprecated (declared at /usr/include/X11/Xlib.h:1695) [-Wdeprecated-declarations]
./GraphicsDisplayX11.cpp:1603:18: warning: 'KeySym XKeycodeToKeysym(Display*, KeyCode, int)' is deprecated (declared at /usr/include/X11/Xlib.h:1695) [-Wdeprecated-declarations]
./GraphicsDisplayX11.cpp:1603:66: warning: 'KeySym XKeycodeToKeysym(Display*, KeyCode, int)' is deprecated (declared at /usr/include/X11/Xlib.h:1695) [-Wdeprecated-declarations]
./GraphicsDisplayX11.cpp: In member function 'bool nux::GraphicsDisplay::UngrabPointer(void*)':
./GraphicsDisplayX11.cpp:2601:33: warning: converting 'false' to pointer type 'void*' [-Wconversion-null]
./GraphicsDisplayX11.cpp: In member function 'bool nux::GraphicsDisplay::UngrabKeyboard(void*)':
./GraphicsDisplayX11.cpp:2656:34: warning: converting 'false' to pointer type 'void*' [-Wconversion-null]
./MeshData.cpp: In member function 'bool nux::MeshData::Allocate(int, nux::NuxMeshPrimitiveType, int, int)':
./MeshData.cpp:34:11: warning: enumeration value 'NUX_MESH_PRIMITIVE_UNKNOWN' not handled in switch [-Wswitch]
./IOpenGLAsmShader.cpp: In member function 'virtual bool nux::IOpenGLAsmVertexShader::Compile()':
./IOpenGLAsmShader.cpp:102:28: warning: variable 'ErrorString' set but not used [-Wunused-but-set-variable]
./IOpenGLAsmShader.cpp: In member function 'virtual bool nux::IOpenGLAsmPixelShader::Compile()':
./IOpenGLAsmShader.cpp:171:28: warning: variable 'ErrorString' set but not used [-Wunused-but-set-variable]
./XInputWindow.cpp: In member function 'std::vector<long int> nux::XInputWindow::GetStrutsData()':
./XInputWindow.cpp:180:7: warning: 'monitor.XRectangle::height' may be used uninitialized in this function [-Wmaybe-uninitialized]
./XInputWindow.cpp:197:7: warning: 'monitor.XRectangle::x' may be used uninitialized in this function [-Wmaybe-uninitialized]
./XInputWindow.cpp:180:7: warning: 'monitor.XRectangle::y' may be used uninitialized in this function [-Wmaybe-uninitialized]
./XInputWindow.cpp:197:7: warning: 'monitor.XRectangle::width' may be used uninitialized in this function [-Wmaybe-uninitialized]
./MainLoopGLib.cpp: In function 'gboolean nux::nux_timeline_dispatch(GSource*, GSourceFunc, gpointer)':
./MainLoopGLib.cpp:174:5: warning: 'void g_source_get_current_time(GSource*, GTimeVal*)' is deprecated (declared at /usr/include/glib-2.0/glib/gmain.h:415): Use 'g_source_get_time' instead [-Wdeprecated-declarations]
./MainLoopGLib.cpp:174:48: warning: 'void g_source_get_current_time(GSource*, GTimeVal*)' is deprecated (declared at /usr/include/glib-2.0/glib/gmain.h:415): Use 'g_source_get_time' instead [-Wdeprecated-declarations]
./MainLoopGLib.cpp: In member function 'void nux::WindowThread::InitGlibLoop()':
./MainLoopGLib.cpp:208:9: warning: 'void g_thread_init(gpointer)' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:259) [-Wdeprecated-declarations]
./MainLoopGLib.cpp:208:27: warning: 'void g_thread_init(gpointer)' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:259) [-Wdeprecated-declarations]

Related branches

MC Return (mc-return)
Changed in nux:
assignee: nobody → MC Return (mc-return)
status: New → In Progress
Revision history for this message
Tim Penhey (thumper) wrote : Re: [Bug 1032313] Re: Compiler warnings lp:nux

On Fri 03 Aug 2012 12:34:20 BST, MC Return wrote:
> ** Changed in: nux
> Assignee: (unassigned) => MC Return (mc-return)
>
> ** Changed in: nux
> Status: New => In Progress
>

Hi, one of the guys here has been looking at them too. I don't want
you to duplicate work

Cheers,

Revision history for this message
MC Return (mc-return) wrote :

Ok, this is postponed for me then. Probably it is better if someone more familiar with nux fixes this.

Changed in nux:
status: In Progress → New
assignee: MC Return (mc-return) → nobody
Changed in nux:
assignee: nobody → Michi Henning (michihenning)
Tim Penhey (thumper)
Changed in nux:
status: New → In Progress
importance: Undecided → Medium
Tim Penhey (thumper)
Changed in nux:
milestone: none → 3.4
Revision history for this message
Stephen M. Webb (bregma) wrote :

Fix Released in Nux Nux 4.0.0.

Changed in nux:
status: Fix Committed → Fix Released
Changed in nux (Ubuntu):
status: New → Fix Released
assignee: nobody → Michi Henning (michihenning)
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.