[cfe-dev] LangOptions::MSCVersion not initialized
Douglas Gregor
dgregor at apple.com
Mon Dec 20 22:24:19 PST 2010
On Dec 19, 2010, at 1:30 PM, Csaba Raduly wrote:
> When compiling r122194 with GCC 4.3.4 on Cygwin 1.7, I get the
> following warning:
>
> /home/Gamer/LLVM/llvm/tools/clang/lib/AST/../../include/clang/Basic/LangOptions.h:
> In function ‘const clang::DiagnosticBuilder& clang::operator<<(const
> clang::DiagnosticBuilder&, const clang::TemplateArgument&)’:
> /home/Gamer/LLVM/llvm/tools/clang/lib/AST/../../include/clang/Basic/LangOptions.h:24:
> warning: ‘LangOpts.clang::LangOptions::MSCVersion’ may be used
> uninitialized in this function
> /home/Gamer/LLVM/llvm/tools/clang/lib/AST/TemplateBase.cpp:230: note:
> ‘LangOpts.clang::LangOptions::MSCVersion’ was declared here
>
> As far as I can see, MSCVersion is not set in the constructor.
Thanks! Fixed in r122318.
- Doug
More information about the cfe-dev
mailing list