summaryrefslogtreecommitdiff
path: root/js/src/vm/ErrorReporting.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/vm/ErrorReporting.h')
-rw-r--r--js/src/vm/ErrorReporting.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/vm/ErrorReporting.h b/js/src/vm/ErrorReporting.h
index ed061e6428..96f3ef6f49 100644
--- a/js/src/vm/ErrorReporting.h
+++ b/js/src/vm/ErrorReporting.h
@@ -81,7 +81,7 @@ ReportCompileError(ErrorMetadata&& metadata, UniquePtr<JSErrorNotes> notes,
* This function DOES NOT respect an existing werror option. If the caller
* wishes such option to be respected, it must do so itself.
*/
-extern MOZ_MUST_USE bool
+[[nodiscard]] extern bool
ReportCompileWarning(JSContext* cx, ErrorMetadata&& metadata, UniquePtr<JSErrorNotes> notes,
unsigned flags, unsigned errorNumber, va_list args);