[cfe-dev] Another -Werror Error

Eli Friedman eli.friedman at gmail.com
Wed Feb 29 13:05:01 PST 2012

On Wed, Feb 29, 2012 at 12:55 PM, David Greene <dag at cray.com> wrote:
> Can someone fix this too?
> [sta-opt]    : [llvm] /ptmp/dag/llvm/staging/llvm/tools/clang/lib/Sema/../../include/clang/Basic/PartialDiagnostic.h: In member function 'bool clang::Sema::DiagnoseAssignmentResult(clang::Sema::AssignConvertType, clang::SourceLocation, clang::QualType, clang::QualType, clang::Expr*, clang::Sema::AssignmentAction, bool*)':
> [sta-opt]    : [llvm] /ptmp/dag/llvm/staging/llvm/tools/clang/lib/Sema/../../include/clang/Basic/PartialDiagnostic.h:173:59: error: 'DiagKind' may be used uninitialized in this function [-Werror=uninitialized]
> [sta-opt]    : [llvm] /ptmp/dag/llvm/staging/llvm/tools/clang/lib/Sema/SemaExpr.cpp:8984:12: note: 'DiagKind' was declared here
> [sta-opt]    : [llvm] cc1plus: all warnings being treated as errors
> Thanks!

Both issues fixed in r151754.


More information about the cfe-dev mailing list