From d855f8f67a4588f44ade0ed19744c99bfe81e76c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 29 Jun 2022 09:45:46 -0400 Subject: Use nodiscard attribute --- include/raul/Socket.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/raul/Socket.hpp') diff --git a/include/raul/Socket.hpp b/include/raul/Socket.hpp index bd8ea35..e62ffb8 100644 --- a/include/raul/Socket.hpp +++ b/include/raul/Socket.hpp @@ -76,9 +76,9 @@ public: std::shared_ptr accept(); /// Return the file descriptor for the socket - int fd() const { return _sock; } + [[nodiscard]] int fd() const { return _sock; } - const std::string& uri() const { return _uri; } + [[nodiscard]] const std::string& uri() const { return _uri; } /// Close the socket void close(); -- cgit v1.2.1