summaryrefslogtreecommitdiff
path: root/base/errors_unix.cpp
diff options
context:
space:
mode:
authorDaichi Hirono <hirono@google.com>2017-06-20 16:18:32 +0900
committerDaichi Hirono <hirono@google.com>2017-06-23 07:15:27 +0000
commitd9cda90ad456ce4cc2f954a4228d85799c3fc7d2 (patch)
tree1a6002cd83726d597f5c146bf62797f4ff612bae /base/errors_unix.cpp
parent1d873b35126ee5026a2429cfc8e02fe8e42e09bc (diff)
Add volatile to temporary variable.
FuseBuffer::HandleNotImpl save the value of |request.header.unique| to the temporary variable, clear the buffer which is a union of |request| and |response|, then write back the unique value to response.header.unique. Before the CL, the temporary variable was wrongly removed by the compiler optimization, and response.header.unique was always 0. The CL adds volatile modifier as workaround to prevent the compiler optimization from removing the temporary value. Bug: 62429763 Test: libappfuse_tests Change-Id: Ia853f805633f646f316f585a35c7b018000b6eb3 (cherry picked from commit a6dee5e279de56751238f750d12f8a6237992043)
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions