[totem] Bug 590565 – Compiler warning in totemPlugin.cpp



commit 1688811a60922a9f259f4f61557f5c84f4e7c962
Author: Robin Stocker <robin nibor org>
Date:   Mon Aug 3 11:23:22 2009 +0200

    Bug 590565 â?? Compiler warning in totemPlugin.cpp
    
    Fix compiler warning about unhandled enum value. Closes: bgo#590565

 browser-plugin/totemPlugin.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/browser-plugin/totemPlugin.cpp b/browser-plugin/totemPlugin.cpp
index 13a5c57..6038f98 100644
--- a/browser-plugin/totemPlugin.cpp
+++ b/browser-plugin/totemPlugin.cpp
@@ -2601,6 +2601,8 @@ totemPlugin::GetNPObject (ObjectEnum which)
     case eGMPSettings:
       npclass = totemGMPSettingsNPClass::Instance();
       break;
+    case eLastNPObject:
+      g_assert_not_reached ();
   }
 #elif defined(TOTEM_COMPLEX_PLUGIN)
   npclass = totemComplexPluginNPClass::Instance();
@@ -2628,6 +2630,8 @@ totemPlugin::GetNPObject (ObjectEnum which)
     case eConeVideo:
       npclass = totemConeVideoNPClass::Instance();
       break;
+    case eLastNPObject:
+      g_assert_not_reached ();
   }
 #else
 #error Unknown plugin type



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]