• 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
..
internal Loading commit data...
delimited_message_util.cc Loading commit data...
delimited_message_util.h Loading commit data...
delimited_message_util_test.cc Loading commit data...
field_comparator.cc Loading commit data...
field_comparator.h Loading commit data...
field_comparator_test.cc Loading commit data...
field_mask_util.cc Loading commit data...
field_mask_util.h Loading commit data...
field_mask_util_test.cc Loading commit data...
json_format_proto3.proto Loading commit data...
json_util.cc Loading commit data...
json_util.h Loading commit data...
json_util_test.cc Loading commit data...
message_differencer.cc Loading commit data...
message_differencer.h Loading commit data...
message_differencer_unittest.cc Loading commit data...
message_differencer_unittest.proto Loading commit data...
package_info.h Loading commit data...
time_util.cc Loading commit data...
time_util.h Loading commit data...
time_util_test.cc Loading commit data...
type_resolver.h Loading commit data...
type_resolver_util.cc Loading commit data...
type_resolver_util.h Loading commit data...
type_resolver_util_test.cc Loading commit data...