Skip to content

Commit cc5bd9b

Browse files
committed
Fix VS2019 warning due to discarding nodiscard value
Normally I'd just delete this since we explicitly copy it into the lambda anyway, but there are a lot of comments here about that this may be needed(?) warning C4834: discarding return value of function with 'nodiscard' attribute
1 parent dac9eef commit cc5bd9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autobahn/wamp_session.ipp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ inline void wamp_session::process_challenge(wamp_message&& message)
790790
});
791791

792792
// make sure the context_response is copied into this lambda...
793-
context_response.get();
793+
(void)context_response.get();
794794
} catch (const std::exception&) {
795795
if (m_debug_enabled) {
796796
std::cerr << "failed to handle authentication" << std::endl;

0 commit comments

Comments
 (0)