diff --git a/libnixf/include/nixf/Basic/Diagnostic.h b/libnixf/include/nixf/Basic/Diagnostic.h index a01642a56..7228c48b3 100644 --- a/libnixf/include/nixf/Basic/Diagnostic.h +++ b/libnixf/include/nixf/Basic/Diagnostic.h @@ -131,7 +131,7 @@ class Note : public PartialDiagnostic { [[nodiscard]] virtual const char *sname() const { return sname(kind()); } - NoteKind kind() const { return Kind; } + [[nodiscard]] NoteKind kind() const { return Kind; } [[nodiscard]] static const char *message(NoteKind Kind);