[cfe-dev] Another -Werror Error

David Greene dag at cray.com
Wed Feb 29 12:55:43 PST 2012


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!

                                     -Dave



More information about the cfe-dev mailing list