Fix build error caused by -Werror=class-memaccess (#823)
Fix build error caused by -Werror=class-memaccess (#823)

Summary:
OS: Arch Linux
GCC Version: gcc (GCC) 8.2.1 20180831
Clang Version: 6.0.1 (tags/RELEASE_601/final)

Build Log Before Fix:

command: `buck build //:yoga`
```
Not using buckd because watchman isn't installed.
yoga/Yoga.cpp: In function ‘void YGZeroOutLayoutRecursivly(YGNodeRef)’:
yoga/Yoga.cpp:1854:51: error: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct YGLayout’; use assignment or value-initialization instead [-Werror=class-memaccess]
   memset(&(node->getLayout()), 0, sizeof(YGLayout));
                                                   ^
In file included from yoga/YGNode.h:11,
                 from yoga/Utils.h:9,
                 from yoga/Yoga.cpp:13:
yoga/YGLayout.h:12:8: note: ‘struct YGLayout’ declared here
 struct YGLayout {
        ^~~~~~~~
cc1plus: all warnings being treated as errors
Build failed: Command failed with exit code 1.
stderr: yoga/Yoga.cpp: In function ‘void YGZeroOutLayoutRecursivly(YGNodeRef)’:
yoga/Yoga.cpp:1854:51: error: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct YGLayout’; use assignment or value-initialization instead [-Werror=class-memaccess]
   memset(&(node->getLayout()), 0, sizeof(YGLayout));
                                                   ^
In file included from yoga/YGNode.h:11,
                 from yoga/Utils.h:9,
                 from yoga/Yoga.cpp:13:
yoga/YGLayout.h:12:8: note: ‘struct YGLayout’ declared here
 struct YGLayout {
        ^~~~~~~~
cc1plus: all warnings being treated as errors
    When running <c++ preprocess_and_compile>.
    When building rule //:yoga#compile-Yoga.cpp.o9b5477b5,default.
Parsing buck files: finished in 0.8 sec (100%)
Building: finished in 2.2 sec (100%) 10/10 jobs, 1 updated
  Total time: 3.3 sec
```

Build Log After Fix

command: `buck build //:yoga`
```
Not using buckd because watchman isn't installed.
Parsing buck files: finished in 0.8 sec (100%)
Building: finished in 0.6 sec (100%) 1/1 jobs, 0 updated
  Total time: 1.6 sec
```

All tests are passing
Pull Request resolved: https://github.com/facebook/yoga/pull/823

Reviewed By: davidaurelio

Differential Revision: D10486023

Pulled By: passy

fbshipit-source-id: e9de734c3ce6c45ea4a8edd5d78206901d85ca84

hoangpham95/react-native,myntra/react-native,javache/react-native,facebook/react-native,exponent/react-native,pandiaraj44/react-native,exponent/react-native,arthuralee/react-native,facebook/react-native,exponent/react-native,pandiaraj44/react-native,exponentjs/react-native,hammerandchisel/react-native,myntra/react-native,hammerandchisel/react-native,exponentjs/react-native,exponentjs/react-native,janicduplessis/react-native,hammerandchisel/react-native,myntra/react-native,myntra/react-native,exponentjs/react-native,janicduplessis/react-native,hoangpham95/react-native,facebook/react-native,exponent/react-native,hoangpham95/react-native,javache/react-native,exponentjs/react-native,pandiaraj44/react-native,javache/react-native,janicduplessis/react-native,hoangpham95/react-native,exponentjs/react-native,pandiaraj44/react-native,myntra/react-native,facebook/react-native,facebook/react-native,myntra/react-native,javache/react-native,javache/react-native,pandiaraj44/react-native,facebook/react-native,pandiaraj44/react-native,pandiaraj44/react-native,pandiaraj44/react-native,myntra/react-native,arthuralee/react-native,exponent/react-native,hammerandchisel/react-native,hoangpham95/react-native,exponentjs/react-native,janicduplessis/react-native,janicduplessis/react-native,javache/react-native,javache/react-native,hammerandchisel/react-native,arthuralee/react-native,exponent/react-native,arthuralee/react-native,myntra/react-native,exponent/react-native,hoangpham95/react-native,hammerandchisel/react-native,javache/react-native,facebook/react-native,facebook/react-native,javache/react-native,janicduplessis/react-native,hoangpham95/react-native,janicduplessis/react-native,exponentjs/react-native,facebook/react-native,hammerandchisel/react-native,arthuralee/react-native,myntra/react-native,janicduplessis/react-native,hammerandchisel/react-native,exponent/react-native,hoangpham95/react-native