]> granicus.if.org Git - clang/commitdiff
Rename diagnostic to reflect it's role...
authorSteve Naroff <snaroff@apple.com>
Fri, 1 Feb 2008 22:44:48 +0000 (22:44 +0000)
committerSteve Naroff <snaroff@apple.com>
Fri, 1 Feb 2008 22:44:48 +0000 (22:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46650 91177308-0d34-0410-b5e6-96231b3b80d8

Sema/SemaExpr.cpp
include/clang/Basic/DiagnosticKinds.def

index 278c07fc14555d680f4904973e45bdc3039881a0..4c8a1d953fe0eb297c670c410e5901c6b5694c97 100644 (file)
@@ -820,7 +820,7 @@ inline QualType Sema::CheckConditionalOperands( // C99 6.5.15
 
       if (!Context.typesAreCompatible(lhptee.getUnqualifiedType(), 
                                       rhptee.getUnqualifiedType())) {
-        Diag(questionLoc, diag::ext_typecheck_cond_incompatible_pointers,
+        Diag(questionLoc, diag::warn_typecheck_cond_incompatible_pointers,
              lexT.getAsString(), rexT.getAsString(),
              lex->getSourceRange(), rex->getSourceRange());
         // In this situation, we assume void* type. No especially good
index 489575c989ab38746362cf4ae810f0e15621186e..c3087fbb3a11495ae3a6a5a6ceffbefa4cd5c9ae 100644 (file)
@@ -822,7 +822,7 @@ DIAG(err_typecheck_expect_scalar_operand, ERROR,
      "operand of type '%0' where arithmetic or pointer type is required")
 DIAG(err_typecheck_cond_incompatible_operands, ERROR,
      "incompatible operand types ('%0' and '%1')")
-DIAG(ext_typecheck_cond_incompatible_pointers, WARNING,
+DIAG(warn_typecheck_cond_incompatible_pointers, WARNING,
      "pointer type mismatch ('%0' and '%1')")
 DIAG(err_typecheck_choose_expr_requires_constant, ERROR,
      "'__builtin_choose_expr' requires a constant expression")