From a120bcd7d778d8c51e2561d20501bb82b2a377fe Mon Sep 17 00:00:00 2001 From: Vern Paxson Date: Fri, 27 May 2022 14:35:52 -0700 Subject: [PATCH] clearer messages for warning about unused functions --- src/script_opt/UsageAnalyzer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script_opt/UsageAnalyzer.cc b/src/script_opt/UsageAnalyzer.cc index d91df3448b..9085c2e5c9 100644 --- a/src/script_opt/UsageAnalyzer.cc +++ b/src/script_opt/UsageAnalyzer.cc @@ -86,7 +86,7 @@ UsageAnalyzer::UsageAnalyzer(std::vector& funcs) auto loc = id->GetLocationInfo(); - id->Warn("function does not have any callers"); + id->Warn("non-exported function does not have any callers"); // Unlike for events/hooks above, we don't add the function to // the reachables. This is because an orphan function is a