public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] debuginfod: Remove unused variable
@ 2024-03-09 23:54 Khem Raj
  2024-03-11  1:49 ` Frank Ch. Eigler
  0 siblings, 1 reply; 2+ messages in thread
From: Khem Raj @ 2024-03-09 23:54 UTC (permalink / raw)
  To: elfutils-devel; +Cc: Khem Raj

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(-)

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:
-- 
2.44.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] debuginfod: Remove unused variable
  2024-03-09 23:54 [PATCH] debuginfod: Remove unused variable Khem Raj
@ 2024-03-11  1:49 ` Frank Ch. Eigler
  0 siblings, 0 replies; 2+ messages in thread
From: Frank Ch. Eigler @ 2024-03-11  1:49 UTC (permalink / raw)
  To: Khem Raj; +Cc: elfutils-devel

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-03-11  1:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-09 23:54 [PATCH] debuginfod: Remove unused variable Khem Raj
2024-03-11  1:49 ` Frank Ch. Eigler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).