summaryrefslogtreecommitdiff
path: root/mfbt/Assertions.h
diff options
context:
space:
mode:
Diffstat (limited to 'mfbt/Assertions.h')
-rw-r--r--mfbt/Assertions.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mfbt/Assertions.h b/mfbt/Assertions.h
index 09a1b8eaa6..a965ae6f1d 100644
--- a/mfbt/Assertions.h
+++ b/mfbt/Assertions.h
@@ -554,7 +554,7 @@ struct AssertionConditionType
* default:
* // This case wants to assert in debug builds, fall through in release.
* MOZ_ASSERT(false); // -Wimplicit-fallthrough warning in release builds!
- * MOZ_FALLTHROUGH; // but -Wunreachable-code warning in debug builds!
+ * [[fallthrough]]; // but -Wunreachable-code warning in debug builds!
* case 5:
* return 5;
* }
@@ -571,7 +571,7 @@ struct AssertionConditionType
#ifdef DEBUG
# define MOZ_FALLTHROUGH_ASSERT(reason) MOZ_CRASH("MOZ_FALLTHROUGH_ASSERT: " reason)
#else
-# define MOZ_FALLTHROUGH_ASSERT(...) MOZ_FALLTHROUGH
+# define MOZ_FALLTHROUGH_ASSERT(...) [[fallthrough]]
#endif
/*