From fa0a7f87002ed7a880db7b6f4ff1517122ea705a Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Mon, 17 Sep 2012 13:38:00 +0200 Subject: [PATCH] Avoid compiler warnings. --- src/Scripting/NasalCanvas.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Scripting/NasalCanvas.cxx b/src/Scripting/NasalCanvas.cxx index 61bc3e932..b0ec82547 100644 --- a/src/Scripting/NasalCanvas.cxx +++ b/src/Scripting/NasalCanvas.cxx @@ -82,7 +82,7 @@ static naRef eventTypeToNasal(naContext c, osgGA::GUIEventAdapter::EventType ty) case osgGA::GUIEventAdapter::KEYDOWN: return stringToNasal(c, "key-down"); default: - ; // fall through + break; } return naNil(); @@ -157,6 +157,7 @@ static const char* elementGhostGetMember(naContext c, void* g, naRef field, naRe { const char* fieldName = naStr_data(field); canvas::Element* e = (canvas::Element*) g; + SG_UNUSED(e); if (!strcmp(fieldName, "parents")) { *out = naNewVector(c); @@ -172,6 +173,8 @@ static void elementGhostSetMember(naContext c, void* g, naRef field, naRef value { const char* fieldName = naStr_data(field); canvas::Element* e = (canvas::Element*) g; + SG_UNUSED(fieldName); + SG_UNUSED(e); }