Hi,

Compiling master on msys2/mingw (gcc 5.3.0) gives these warnings:



Code:
D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/src/osgPlugins/zip/unzip.cpp:
 In function 'int unzlocal_getShort(LUFILE*, uLong*)':
D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/src/osgPlugins/zip/unzip.cpp:2996:17:
 warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized]
     x = (uLong)i;
                 ^
D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/src/osgPlugins/zip/unzip.cpp:
 In function 'int unzlocal_getLong(LUFILE*, uLong*)':
D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/src/osgPlugins/zip/unzip.cpp:3016:17:
 warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized]
     x = (uLong)i;
                 ^




Code:
D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/src/osgPlugins/osc/osc/OscPrintReceivedElements.cpp:
 In function 'std::ostream& osc::operator<<(std::ostream&, const 
osc::ReceivedMessageArgument&)':
D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/src/osgPlugins/osc/osc/OscPrintReceivedElements.cpp:115:70:
 warning: right shift count >= width of type [-Wshift-count-overflow]
                         (unsigned long)( arg.AsTimeTagUnchecked() >> 32 );
                                                                      ^



Code:

D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/src/osgViewer/GraphicsWindowWin32.cpp:
 In function 'int osgViewer::ChooseMatchingPixelFormat(HDC, int, const 
WGLIntegerAttributes&, osg::GraphicsContext::Traits*)':
D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/src/osgViewer/GraphicsWindowWin32.cpp:1677:62:
 warning: converting to non-pointer type 'long long int' from NULL 
[-Wconversion-null]
             DWORD(_traits->doubleBuffer ? PFD_DOUBLEBUFFER : NULL) |      // 
double buffered ?
                                                              ^
D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/src/osgViewer/GraphicsWindowWin32.cpp:1678:93:
 warning: converting to non-pointer type 'long long int' from NULL 
[-Wconversion-null]
             DWORD(_traits->swapMethod ==  osg::DisplaySettings::SWAP_COPY ? 
PFD_SWAP_COPY : NULL) |
                                                                                
             ^
D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/src/osgViewer/GraphicsWindowWin32.cpp:1679:101:
 warning: converting to non-pointer type 'long long int' from NULL 
[-Wconversion-null]
             DWORD(_traits->swapMethod ==  osg::DisplaySettings::SWAP_EXCHANGE 
? PFD_SWAP_EXCHANGE : NULL),


                                                                                
                     ^


Code:
D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/examples/osgsimulation/osgsimulation.cpp:33:0:
 warning: ignoring #pragma warning  [-Wunknown-pragmas]
 #pragma warning(disable : 4103 4114 4201 4237 4251 4275 4290 4503 4335 4786)
 ^





Code:
D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/examples/osgviewerWX/osgviewerWX.cpp:
 In constructor 'OSGCanvas::OSGCanvas(wxWindow*, wxWindowID, const wxPoint&, 
const wxSize&, long int, const wxString&, int*)':
D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/examples/osgviewerWX/osgviewerWX.cpp:138:89:
 warning: 'wxGLCanvas::wxGLCanvas(wxWindow*, wxWindowID, const wxPoint&, const 
wxSize&, long int, const wxString&, const int*, const wxPalette&)' is 
deprecated [-Wdeprecated-declarations]
     : wxGLCanvas(parent, id, pos, size, style|wxFULL_REPAINT_ON_RESIZE, name, 
attributes)
                                                                                
         ^
In file included from C:/msys64/mingw64/include/wx-3.0/wx/wxprec.h:12:0,
                 from 
D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/examples/osgviewerWX/osgviewerWX.cpp:2:
C:/msys64/mingw64/include/wx-3.0/wx/msw/glcanvas.h:96:5: note: declared here
     wxDEPRECATED(
     ^
D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/examples/osgviewerWX/osgviewerWX.cpp:
 In member function 'void OSGCanvas::OnSize(wxSizeEvent&)':
D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/examples/osgviewerWX/osgviewerWX.cpp:157:17:
 warning: 'void wxGLCanvasBase::OnSize(wxSizeEvent&)' is deprecated 
[-Wdeprecated-declarations]
     wxGLCanvas::OnSize(event);
                 ^
In file included from C:/msys64/mingw64/include/wx-3.0/wx/wxprec.h:12:0,
                 from 
D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/examples/osgviewerWX/osgviewerWX.cpp:2:
C:/msys64/mingw64/include/wx-3.0/wx/glcanvas.h:140:5: note: declared here
     wxDEPRECATED( void OnSize(wxSizeEvent& event) );
     ^
D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/examples/osgviewerWX/osgviewerWX.cpp:157:29:
 warning: 'void wxGLCanvasBase::OnSize(wxSizeEvent&)' is deprecated 
[-Wdeprecated-declarations]
     wxGLCanvas::OnSize(event);
                             ^
In file included from C:/msys64/mingw64/include/wx-3.0/wx/wxprec.h:12:0,
                 from 
D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/examples/osgviewerWX/osgviewerWX.cpp:2:
C:/msys64/mingw64/include/wx-3.0/wx/glcanvas.h:140:5: note: declared here
     wxDEPRECATED( void OnSize(wxSizeEvent& event) );
     ^
D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/examples/osgviewerWX/osgviewerWX.cpp:
 In member function 'virtual bool 
GraphicsWindowWX::makeCurrentImplementation()':
D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/examples/osgviewerWX/osgviewerWX.cpp:335:25:
 warning: 'void wxGLCanvasBase::SetCurrent()' is deprecated 
[-Wdeprecated-declarations]
     _canvas->SetCurrent();
                         ^
In file included from C:/msys64/mingw64/include/wx-3.0/wx/wxprec.h:12:0,
                 from 
D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/examples/osgviewerWX/osgviewerWX.cpp:2:
C:/msys64/mingw64/include/wx-3.0/wx/glcanvas.h:138:5: note: declared here
     wxDEPRECATED( void SetCurrent() );
     ^



Cheers,
Philippe

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=67480#67480





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to