From c615e1e666d2b3768bfc1924b25fcbb055cd1c62 Mon Sep 17 00:00:00 2001 From: engineer_apple Date: Sat, 22 Feb 2020 21:36:28 +0000 Subject: [PATCH] remove examples warnings git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6089 dfc29bdd-3216-0410-991c-e03cc46cb475 --- examples/10.Shaders/main.cpp | 2 ++ examples/16.Quake3MapShader/main.cpp | 4 +++- examples/22.MaterialViewer/main.cpp | 2 +- examples/23.SMeshHandling/main.cpp | 2 +- examples/25.XmlHandling/main.cpp | 2 ++ 5 files changed, 9 insertions(+), 3 deletions(-) diff --git a/examples/10.Shaders/main.cpp b/examples/10.Shaders/main.cpp index cb703739..d59145ac 100644 --- a/examples/10.Shaders/main.cpp +++ b/examples/10.Shaders/main.cpp @@ -228,6 +228,8 @@ int main() vsFileName = mediaPath + "opengl.vsh"; } break; + default: + break; } /* diff --git a/examples/16.Quake3MapShader/main.cpp b/examples/16.Quake3MapShader/main.cpp index 67a06134..a30068c6 100644 --- a/examples/16.Quake3MapShader/main.cpp +++ b/examples/16.Quake3MapShader/main.cpp @@ -335,6 +335,8 @@ int IRRCALLCONV main(int argc, char* argv[]) case video::EDT_DIRECT3D9: gui->addImage(driver->getTexture("directxlogo.png"), pos); break; + default: + break; } /* @@ -355,7 +357,7 @@ int IRRCALLCONV main(int argc, char* argv[]) driver->endScene(); int fps = driver->getFPS(); - //if (lastFPS != fps) + if (1 || lastFPS != fps) { io::IAttributes * const attr = smgr->getParameters(); core::stringw str = L"Q3 ["; diff --git a/examples/22.MaterialViewer/main.cpp b/examples/22.MaterialViewer/main.cpp index 83309260..358ce02c 100755 --- a/examples/22.MaterialViewer/main.cpp +++ b/examples/22.MaterialViewer/main.cpp @@ -429,7 +429,7 @@ void CMaterialControl::init(scene::IMeshSceneNode* node, IrrlichtDevice * device Driver = device->getVideoDriver (); gui::IGUIEnvironment* guiEnv = device->getGUIEnvironment(); - scene::ISceneManager* smgr = device->getSceneManager(); + //scene::ISceneManager* smgr = device->getSceneManager(); const video::SMaterial & material = node->getMaterial(0); s32 top = pos.Y; diff --git a/examples/23.SMeshHandling/main.cpp b/examples/23.SMeshHandling/main.cpp index 2d413094..d4ce20de 100644 --- a/examples/23.SMeshHandling/main.cpp +++ b/examples/23.SMeshHandling/main.cpp @@ -180,7 +180,7 @@ private: public: SMesh* Mesh; - TMesh() : Mesh(0), Width(0), Height(0), Scale(1.f) + TMesh() : Width(0), Height(0), Scale(1.f), Mesh(0) { Mesh = new SMesh(); } diff --git a/examples/25.XmlHandling/main.cpp b/examples/25.XmlHandling/main.cpp index 657ad8dc..dba75207 100644 --- a/examples/25.XmlHandling/main.cpp +++ b/examples/25.XmlHandling/main.cpp @@ -142,6 +142,8 @@ public: //we were at the end of the video section so we reset our tag currentSection=L""; break; + default: + break; } }