Enable -Wextra in C++ builds (#1294)
Summary: Pull Request resolved: https://github.com/facebook/yoga/pull/1294 X-link: https://github.com/facebook/react-native/pull/37383 Add -Wextra to the build, and fixup some more instances of -Wunused-parameter that it sufaces which were not automatically fixable. Reviewed By: javache Differential Revision: D45772846 fbshipit-source-id: 29bf71006f63161521fe5869c3a7d8bf7aae9c81
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a97dbecb49
commit
e53d1ee28a
@@ -290,7 +290,7 @@ EventArgs createArgs(const YGNode& node, const Event::Data data) {
|
||||
using Data = Event::TypedData<E>;
|
||||
auto deleteData = [](void* x) { delete static_cast<Data*>(x); };
|
||||
|
||||
return {&node, E, {new Data{(data.get<E>())}, deleteData}};
|
||||
return {&node, E, {new Data{(data.get<E>())}, deleteData}, nullptr};
|
||||
}
|
||||
|
||||
template <Event::Type E>
|
||||
|
@@ -19,9 +19,9 @@ int nodeInstanceCount = 0;
|
||||
namespace {
|
||||
|
||||
void yogaEventSubscriber(
|
||||
const YGNode& node,
|
||||
const YGNode& /*node*/,
|
||||
Event::Type eventType,
|
||||
const Event::Data& eventData) {
|
||||
const Event::Data& /*eventData*/) {
|
||||
|
||||
switch (eventType) {
|
||||
case Event::NodeAllocation:
|
||||
|
Reference in New Issue
Block a user