Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a91e4f20 authored by Daichi Hirono's avatar Daichi Hirono Committed by android-build-merger
Browse files

Add volatile to temporary variable.

am: d9cda90a

Change-Id: I1ce0acfc808998a9cef29b896877504883273cc9
parents f4682b2b d9cda90a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -251,7 +251,9 @@ void FuseBuffer::HandleInit() {
void FuseBuffer::HandleNotImpl() {
  LOG(VERBOSE) << "NOTIMPL op=" << request.header.opcode << " uniq="
      << request.header.unique << " nid=" << request.header.nodeid;
  const uint64_t unique = request.header.unique;
  // Add volatile as a workaround for compiler issue which removes the temporary
  // variable.
  const volatile uint64_t unique = request.header.unique;
  response.Reset(0, -ENOSYS, unique);
}