• brian-peloton's avatar
    Removing undefined behavior and compiler warnings (#1315) · 40da1ed5
    brian-peloton authored
    * Comment out unused arguments.
    
    These last few are all that's needed to compile with -Wunused-arguments.
    
    * Fix missing struct field initializer.
    
    With this fix, everything compiles with -Wmissing-field-initializers.
    
    * Add support for disabling unaligned memory accesses on x86 too.
    
    ubsan doesn't like these because they are technically undefined
    behavior, so -DGOOGLE_PROTOBUF_DONT_USE_UNALIGNED will disable them easily.
    
    * Avoid undefined integer overflow.
    
    ubsan catches all of these.
    40da1ed5
Name
Last commit
Last update
..
coded_stream.cc Loading commit data...
coded_stream.h Loading commit data...
coded_stream_inl.h Loading commit data...
coded_stream_unittest.cc Loading commit data...
gzip_stream.cc Loading commit data...
gzip_stream.h Loading commit data...
gzip_stream_unittest.sh Loading commit data...
package_info.h Loading commit data...
printer.cc Loading commit data...
printer.h Loading commit data...
printer_unittest.cc Loading commit data...
strtod.cc Loading commit data...
strtod.h Loading commit data...
tokenizer.cc Loading commit data...
tokenizer.h Loading commit data...
tokenizer_unittest.cc Loading commit data...
zero_copy_stream.cc Loading commit data...
zero_copy_stream.h Loading commit data...
zero_copy_stream_impl.cc Loading commit data...
zero_copy_stream_impl.h Loading commit data...
zero_copy_stream_impl_lite.cc Loading commit data...
zero_copy_stream_impl_lite.h Loading commit data...
zero_copy_stream_unittest.cc Loading commit data...