[Lldb-commits] [PATCH 1/3] struct ParserVars warning fix.

Stephen Wilson wilsons at start.ca
Mon Apr 11 04:52:28 PDT 2011


All of these look good to me.  Built and tested.


On Mon, Apr 11, 2011 at 10:38:20AM +0200, Marco Minutoli wrote:
> ParserVars is declared using the class keyword. This solve the
> warning.
> ---
>  include/lldb/Expression/ClangExpressionDeclMap.h  |    2 +-
>  include/lldb/Expression/ClangExpressionVariable.h |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/include/lldb/Expression/ClangExpressionDeclMap.h b/include/lldb/Expression/ClangExpressionDeclMap.h
> index b0a08f7..ebae71d 100644
> --- a/include/lldb/Expression/ClangExpressionDeclMap.h
> +++ b/include/lldb/Expression/ClangExpressionDeclMap.h
> @@ -509,7 +509,7 @@ private:
>      EnableParserVars()
>      {
>          if (!m_parser_vars.get())
> -            m_parser_vars.reset(new struct ParserVars);
> +            m_parser_vars.reset(new ParserVars);
>      }
>      
>      //----------------------------------------------------------------------
> diff --git a/include/lldb/Expression/ClangExpressionVariable.h b/include/lldb/Expression/ClangExpressionVariable.h
> index dc6b7f8..a1a9deb 100644
> --- a/include/lldb/Expression/ClangExpressionVariable.h
> +++ b/include/lldb/Expression/ClangExpressionVariable.h
> @@ -117,7 +117,7 @@ public:
>      EnableParserVars()
>      {
>          if (!m_parser_vars.get())
> -            m_parser_vars.reset(new struct ParserVars);
> +            m_parser_vars.reset(new ParserVars);
>      }
>      
>      //----------------------------------------------------------------------
> -- 
> 1.7.1
> 
> _______________________________________________
> lldb-commits mailing list
> lldb-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

-- 
steve




More information about the lldb-commits mailing list