debuginfod: Remove unused variable

Message ID 20240309235435.515735-1-raj.khem@gmail.com
State Committed
Headers
Series debuginfod: Remove unused variable |

Commit Message

Khem Raj March 9, 2024, 11:54 p.m. UTC
  Recent commit acd9525e9 has removed all references to max_fds
therefore remove it, moreover clang18 is happier

| ../../elfutils-0.191/debuginfod/debuginfod.cxx:1448:8: error: private field 'max_fds' is not used [-Werror,-Wunused-private-field]
|  1448 |   long max_fds;
|       |        ^
| 1 error generated.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 debuginfod/debuginfod.cxx | 1 -
 1 file changed, 1 deletion(-)
  

Comments

Frank Ch. Eigler March 11, 2024, 1:49 a.m. UTC | #1
Khem Raj <raj.khem@gmail.com> writes:

> Recent commit acd9525e9 has removed all references to max_fds
> therefore remove it, moreover clang18 is happier

Thanks, merged as obvious.

- FChE
  

Patch

diff --git a/debuginfod/debuginfod.cxx b/debuginfod/debuginfod.cxx
index 560880f2..72617848 100644
--- a/debuginfod/debuginfod.cxx
+++ b/debuginfod/debuginfod.cxx
@@ -1445,7 +1445,6 @@  private:
 
   map<key,fdcache_entry> entries; // optimized for lookup
   time_t last_cleaning;
-  long max_fds;
   long max_mbs;
 
 public: