To avoid code that forgets to check the return value. We may need to fix some existing callers.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/88622215affa898deaf1399711387289cd8ff8ed commit 88622215affa898deaf1399711387289cd8ff8ed Author: dcheng <dcheng@chromium.org> Date: Tue Oct 04 02:51:02 2016 mojo: Mark DataView readers as WARN_UNUSED_RESULT. It's important to check this return value to make sure that deserialization actually succeeded. BUG=652129 Review-Url: https://codereview.chromium.org/2392713002 Cr-Commit-Position: refs/heads/master@{#422681} [modify] https://crrev.com/88622215affa898deaf1399711387289cd8ff8ed/components/arc/bluetooth/bluetooth_struct_traits.cc [modify] https://crrev.com/88622215affa898deaf1399711387289cd8ff8ed/mojo/public/tools/bindings/generators/cpp_templates/module-shared.h.tmpl [modify] https://crrev.com/88622215affa898deaf1399711387289cd8ff8ed/mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_declaration.tmpl [modify] https://crrev.com/88622215affa898deaf1399711387289cd8ff8ed/mojo/public/tools/bindings/generators/cpp_templates/union_data_view_declaration.tmpl
Comment 1 by dcheng@chromium.org
, Oct 3 2016Status: Started (was: Available)