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; } }