Fix gcc 4.2 warning about incomplete case coverage in switch

statement for plugin events.  This becomes an error in the build
so I'm adding a default: case to cover the enumeration.
meow-7.2.2
Monty Brandenberg 2011-04-12 18:11:28 -04:00
parent fa1827fa32
commit 2399b2fca1
1 changed files with 8 additions and 2 deletions

View File

@ -4,7 +4,7 @@
*
* $LicenseInfo:firstyear=2008&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
* Copyright (C) 2011, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@ -2233,7 +2233,13 @@ void LLMediaPluginTest::handleMediaEvent(LLPluginClassMedia* self, EMediaEvent e
case MEDIA_EVENT_LINK_HOVERED:
{
std::cerr << "Media event: MEDIA_EVENT_LINK_HOVERED, hover text is: " << self->getHoverText() << std::endl;
};
}
break;
default:
{
std::cerr << "Media event: <unknown>, code is: " << int(event) << std::endl;
}
break;
}
}