aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/stubs/statusor.h
Commit message (Collapse)AuthorAge
* Use the T() instead of NULL for the default value.Gravatar Jisi Liu2016-03-29
| | | | | The template can be specialized on primitives, e.g. double, where converting NULL will trigger a warning.
* Avoid upcasting uninitialized pointersGravatar Brian Silverman2016-01-20
| | | | | | | | | | Fixes google/protobuf#693 msan flags this as being undefined behavior. I think it's triggering because the compiler has to insert a branch to avoid changing the pointer's value if it starts out NULL. I can't figure out if this is actually undefined behavior or not, but it definitely seems to be a gray area of the standard which is best avoided.
* Fix broken builds.Gravatar Feng Xiao2015-06-17
|
* Down-integrate from internal code base.Gravatar Feng Xiao2015-06-15
[ci skip] Change-Id: I9391c09640e0b0b2b21c45a97a1fc91814d95c5d