mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 1235237 - Annotate intentional switch fallthrough to suppress -Wimplicit-fallthrough warning in storage/. r=mak
storage/mozStoragePrivateHelpers.cpp:234:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
This commit is contained in:
parent
c34a7481ae
commit
c0fb08917c
@ -230,6 +230,7 @@ convertVariantToStorageVariant(nsIVariant* aVariant)
|
||||
// Take ownership of the data avoiding a further copy.
|
||||
return new AdoptedBlobVariant(v);
|
||||
}
|
||||
MOZ_FALLTHROUGH;
|
||||
}
|
||||
case nsIDataType::VTYPE_EMPTY:
|
||||
case nsIDataType::VTYPE_EMPTY_ARRAY:
|
||||
@ -244,7 +245,6 @@ convertVariantToStorageVariant(nsIVariant* aVariant)
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
|
||||
}
|
||||
|
||||
namespace {
|
||||
@ -273,7 +273,5 @@ newCompletionEvent(mozIStorageCompletionCallback *aCallback)
|
||||
return event.forget();
|
||||
}
|
||||
|
||||
|
||||
|
||||
} // namespace storage
|
||||
} // namespace mozilla
|
||||
|
Loading…
Reference in New Issue
Block a user