diff options
author | David Robillard <d@drobilla.net> | 2022-06-28 22:57:52 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-06-28 23:10:11 -0400 |
commit | cde85f3f450f7c3f12e1f7c4a70cb374e4756319 (patch) | |
tree | a7c29860f761f0876d753c85856f88d8993f6643 /include/raul/Process.hpp | |
parent | 5f12264cddac578f74dee7e12411c57eed4d3eae (diff) | |
download | raul-cde85f3f450f7c3f12e1f7c4a70cb374e4756319.tar.gz raul-cde85f3f450f7c3f12e1f7c4a70cb374e4756319.tar.bz2 raul-cde85f3f450f7c3f12e1f7c4a70cb374e4756319.zip |
Remove redundant `struct` keys
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]
Diffstat (limited to 'include/raul/Process.hpp')
-rw-r--r-- | include/raul/Process.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<int>(fd)); |