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

Commit 4824ef79 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add volatile to temporary variable."

parents 10bfdc35 a6dee5e2
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);
}