From: Neil Booth Date: Sun, 26 Aug 2007 05:01:15 +0000 (+0000) Subject: Make some diags EXTENSION so they are errors with pedantic errors X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=48a80946f5632bf7287984e3f7b515a336d43acd;p=clang Make some diags EXTENSION so they are errors with pedantic errors git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41422 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticKinds.def b/include/clang/Basic/DiagnosticKinds.def index 4835f0d508..e9756fdd55 100644 --- a/include/clang/Basic/DiagnosticKinds.def +++ b/include/clang/Basic/DiagnosticKinds.def @@ -731,11 +731,11 @@ DIAG(warn_case_empty_range, WARNING, "empty case range specified") DIAG(err_typecheck_return_incompatible, ERROR, "incompatible type returning '%1', expected '%0'") -DIAG(ext_typecheck_return_pointer_int, WARNING, +DIAG(ext_typecheck_return_pointer_int, EXTENSION, "incompatible type returning '%1', expected '%0'") -DIAG(ext_typecheck_return_incompatible_pointer, WARNING, +DIAG(ext_typecheck_return_incompatible_pointer, EXTENSION, "incompatible pointer type returning '%1', expected '%0'") -DIAG(ext_typecheck_return_discards_qualifiers, WARNING, +DIAG(ext_typecheck_return_discards_qualifiers, EXTENSION, "returning '%1' from function expecting '%0' discards qualifiers") DIAG(err_typecheck_statement_requires_scalar, ERROR, "statement requires expression of scalar type ('%0' invalid)")