• Keith Moyer's avatar
    Satisfy GCC class-memaccess warnings · c1f650a3
    Keith Moyer authored
    GCC 8 added a -Wclass-memaccess that is enabled in -Wall that warns when
    making direct memory modifications to non-trivial objects. The objects
    that are modified here are only "non-trivial" in non-interesting ways
    (e.g., removal of copy constructor) and can be safely modified as is
    being done.
    
    This simply explicitly casts the pointers before calling memset to
    indicate that they should be treated as raw memory.
    c1f650a3
Name
Last commit
Last update
..
google/protobuf Loading commit data...
solaris Loading commit data...
Makefile.am Loading commit data...
README.md Loading commit data...
libprotobuf-lite.map Loading commit data...
libprotobuf.map Loading commit data...
libprotoc.map Loading commit data...