diff --git a/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp b/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp index 33e72268f1f..7823542ad3c 100644 --- a/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp +++ b/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp @@ -64,8 +64,7 @@ static void testShadowNodeTreeLifeCycleLayoutAnimations( PropsParserContext parserContext{-1, *contextContainer}; // Create a RuntimeExecutor - RuntimeExecutor runtimeExecutor = - [](std::function fn) {}; + RuntimeExecutor runtimeExecutor = [](std::function) {}; // Create component descriptor registry for animation driver auto providerRegistry = diff --git a/ReactCommon/react/renderer/templateprocessor/tests/UITemplateProcessorTest.cpp b/ReactCommon/react/renderer/templateprocessor/tests/UITemplateProcessorTest.cpp index add08294321..8f2b2a068dc 100644 --- a/ReactCommon/react/renderer/templateprocessor/tests/UITemplateProcessorTest.cpp +++ b/ReactCommon/react/renderer/templateprocessor/tests/UITemplateProcessorTest.cpp @@ -48,8 +48,7 @@ NativeModuleRegistry buildNativeModuleRegistry(); NativeModuleRegistry buildNativeModuleRegistry() { NativeModuleRegistry nMR; nMR.registerModule( - "MobileConfig", - [&](const std::string &methodName, const folly::dynamic &args) { + "MobileConfig", [&](const std::string &, const folly::dynamic &) { return mockSimpleTestValue_; }); return nMR; @@ -62,15 +61,15 @@ class MockReactNativeConfig : public ReactNativeConfig { return mockSimpleTestValue_; } - std::string getString(const std::string ¶m) const override { + std::string getString(const std::string &) const override { return ""; } - int64_t getInt64(const std::string ¶m) const override { + int64_t getInt64(const std::string &) const override { return 0; } - double getDouble(const std::string ¶m) const override { + double getDouble(const std::string &) const override { return 0.0; } };