[lldb-dev] BreakpointResolverFileRegex::SearchCallback Warning

jingham at apple.com jingham at apple.com
Fri Oct 4 12:12:54 PDT 2013


My bad, I centralized some code that used to be in this function, that code logs, but after the refactoring this code doesn't.  Feel free to remove it.

Jim

On Oct 4, 2013, at 8:29 AM, Michael Sartain <mikesart at gmail.com> wrote:

> Getting unused variable warning:
> 
> /home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Breakpoint/BreakpointResolverFileRegex.cpp:58:10: warning: unused variable 'log' [-Wunused-variable]
>     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_BREAKPOINTS));
>          ^
> in SearchCallback:
> 
>   44 Searcher::CallbackReturn
>   45 BreakpointResolverFileRegex::SearchCallback
>   46 (
>   47     SearchFilter &filter,
>   48     SymbolContext &context,
>   49     Address *addr,
>   50     bool containing
>   51 )
> 
> Did someone mean to log something there, or should I remove it?
> Thanks.
>  -Mike
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev




More information about the lldb-dev mailing list