From 9c15b9dfa9da503004893dc753ac845a668e4a0a Mon Sep 17 00:00:00 2001 From: engineer_apple Date: Sat, 22 Feb 2020 21:42:44 +0000 Subject: [PATCH] remove examples warnings git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6090 dfc29bdd-3216-0410-991c-e03cc46cb475 --- examples/12.TerrainRendering/main.cpp | 1 + examples/16.Quake3MapShader/main.cpp | 2 +- examples/25.XmlHandling/main.cpp | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/12.TerrainRendering/main.cpp b/examples/12.TerrainRendering/main.cpp index fc9d437c..f9bc97e6 100644 --- a/examples/12.TerrainRendering/main.cpp +++ b/examples/12.TerrainRendering/main.cpp @@ -213,6 +213,7 @@ int main() terrain->getMeshBufferForLOD(*buffer, 0); video::S3DVertex2TCoords* data = (video::S3DVertex2TCoords*)buffer->getVertexBuffer().getData(); // Work on data or get the IndexBuffer with a similar call. + (void)data; // disable unused variable warnings buffer->drop(); // When done drop the buffer again. /* diff --git a/examples/16.Quake3MapShader/main.cpp b/examples/16.Quake3MapShader/main.cpp index a30068c6..38062c5a 100644 --- a/examples/16.Quake3MapShader/main.cpp +++ b/examples/16.Quake3MapShader/main.cpp @@ -359,12 +359,12 @@ int IRRCALLCONV main(int argc, char* argv[]) int fps = driver->getFPS(); if (1 || lastFPS != fps) { - io::IAttributes * const attr = smgr->getParameters(); core::stringw str = L"Q3 ["; str += driver->getName(); str += "] FPS:"; str += fps; #ifdef _IRR_SCENEMANAGER_DEBUG + io::IAttributes * const attr = smgr->getParameters(); str += " Cull:"; str += attr->getAttributeAsInt("calls"); str += "/"; diff --git a/examples/25.XmlHandling/main.cpp b/examples/25.XmlHandling/main.cpp index dba75207..d022e5c2 100644 --- a/examples/25.XmlHandling/main.cpp +++ b/examples/25.XmlHandling/main.cpp @@ -346,6 +346,8 @@ public: } } break; + default: + break; } }