From cde85f3f450f7c3f12e1f7c4a70cb374e4756319 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 28 Jun 2022 22:57:52 -0400 Subject: Remove redundant `struct` keys MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Because this is C++ code, GCC 12 says things like: Socket.hpp:166:24: error: redundant class-key ‘struct’ in reference to ‘struct sockaddr_un’ [-Werror=redundant-tags] --- include/raul/Process.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/raul/Process.hpp') diff --git a/include/raul/Process.hpp b/include/raul/Process.hpp index 085ed8b..d3ef0a9 100644 --- a/include/raul/Process.hpp +++ b/include/raul/Process.hpp @@ -46,7 +46,7 @@ public: // (in child) // Close all nonstandard file descriptors - struct rlimit max_fds {}; + rlimit max_fds {}; getrlimit(RLIMIT_NOFILE, &max_fds); for (rlim_t fd = 3; fd < max_fds.rlim_cur; ++fd) { close(static_cast(fd)); -- cgit v1.2.1