Skip to content

Commit 9094abe

Browse files
committed
Add additional nodiscard attribute
Related: #25
1 parent 93e62c9 commit 9094abe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/java_symbols.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ template<typename Type>
9595
struct Mutex
9696
{
9797

98-
Locked<Type, std::mutex> lock()
98+
[[nodiscard]] Locked<Type, std::mutex> lock()
9999
{
100100
return Locked(value_, mutex_);
101101
}

0 commit comments

Comments
 (0)