This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: New ARI warning Tue Jan 21 01:52:58 UTC 2014


> > gdb/cli/cli-decode.c:1402: deprecated: deprecated warn_user: Do not use deprecated warn_user, see declaration for details
> gdb/cli/cli-decode.c:1402:      if (found->deprecated_warn_user)

Does anyone understand this violation?

This is what the declaration in cli/cli-decode.h looks like:

    /* The user needs to be warned that this is a deprecated command.
       The user should only be warned the first time a command is
       used.  */

    unsigned int deprecated_warn_user : 1;

This bit is set when a command is deprecated via deprecate_cmd,
and seems to be an integral part of how we manage deprecated
commands.

So I'm wondering if the warning may have been about something else?
Or maybe I'm missing something?

Thanks,
-- 
Joel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]