Bug 1664374 - Replace MOZ_MUST_USE with [[nodiscard]] in hal. r=gsvelto

The MOZ_MUST_USE macro is defined as clang's and gcc's nonstandard __attribute__((warn_unused_result)). Now that we compile as C++17 by default (bug 1560664), we can replace MOZ_MUST_USE with C++17's standard [[nodiscard]] attribute.

Differential Revision: https://phabricator.services.mozilla.com/D89871
This commit is contained in:
Chris Peterson 2020-09-11 06:35:02 +00:00
parent 3dd6180180
commit a7ec09ed1e

View file

@ -234,7 +234,7 @@ void NotifyScreenConfigurationChange(
* Lock the screen orientation to the specific orientation.
* @return Whether the lock has been accepted.
*/
MOZ_MUST_USE bool LockScreenOrientation(
[[nodiscard]] bool LockScreenOrientation(
const hal::ScreenOrientation& aOrientation);
/**