Skip to content

Commit

Permalink
Fix for GCC 4.7.2 returning lambda.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Mar 14, 2017
1 parent 1187f81 commit c474509
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/unit/PluginManagerTest.cpp
Expand Up @@ -49,6 +49,11 @@ struct DummyPlugin : Filter
static std::string const description;
static std::string const link;
// Plugin management
static int32_t dummyExitFunc()
{
return 0;
}

static PF_ExitFunc initPlugin() // PF_InitFunc
{
PF_RegisterParams rp;
Expand All @@ -61,7 +66,9 @@ struct DummyPlugin : Filter
rp.pluginType = PF_PluginType_Filter;
if (!PluginManager::registerObject(name, &rp))
return nullptr;
return []()->int32_t { return 0; };
return dummyExitFunc;
//Broken on gcc 4.7.2
// return []()->int32_t { return 0; };
}
static void* create()
{
Expand Down

0 comments on commit c474509

Please sign in to comment.