]> granicus.if.org Git - clang/commitdiff
Implement -Wno-pointer-sign.
authorEli Friedman <eli.friedman@gmail.com>
Mon, 30 Mar 2009 21:19:48 +0000 (21:19 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Mon, 30 Mar 2009 21:19:48 +0000 (21:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68062 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Driver/Options.def
tools/clang-cc/Warnings.cpp

index 1c16b333f7d278ae6aba2f0a084d4be11fb2b99f..dc5dd85cec41afcfc0055dcc0c03b7e11c25b246 100644 (file)
@@ -283,6 +283,7 @@ OPTION("-Wno-format-y2k", Wno_format_y2k, Flag, clang_ignored_W_Group, INVALID,
 OPTION("-Wno-four-char-constants", Wno_four_char_constants, Flag, clang_ignored_W_Group, INVALID, "", 0)
 OPTION("-Wno-missing-field-initializers", Wno_missing_field_initializers, Flag, clang_ignored_W_Group, INVALID, "", 0)
 OPTION("-Wno-nonportable-cfstrings", Wno_nonportable_cfstrings, Joined, W_Group, INVALID, "", 0)
+OPTION("-Wno-pointer-sign", Wno_pointer_sign, Flag, clang_W_Group, INVALID, "", 0)
 OPTION("-Wno-strict-selector-match", Wno_strict_selector_match, Flag, clang_W_Group, INVALID, "", 0)
 OPTION("-Wno-trigraphs", Wno_trigraphs, Flag, clang_ignored_W_Group, INVALID, "", 0)
 OPTION("-Wno-unknown-pragmas", Wno_unknown_pragmas, Flag, clang_ignored_W_Group, INVALID, "", 0)
index 18e44d72e3c4c34518b95d9ad3778906aeb269b8..54155e45a646fa0582bc31be0c19157db006b488 100644 (file)
@@ -136,6 +136,9 @@ static const diag::kind UndefDiags[] = { diag::warn_pp_undef_identifier };
 static const diag::kind ImplicitFunctionDeclarationDiags[] = {
   diag::ext_implicit_function_decl, diag::warn_implicit_function_decl
 };
+static const diag::kind PointerSignDiags[] = {
+  diag::ext_typecheck_convert_incompatible_pointer_sign
+};
 // Hmm ... this option is currently actually completely ignored.
 //static const diag::kind StrictSelectorMatchDiags[] = {  };
 // Second the table of options.  MUST be sorted by name! Binary lookup is done.
@@ -143,6 +146,7 @@ static const WarningOption OptionTable[] = {
   { "float-equal",           DIAGS(FloatEqualDiags) },
   { "format-nonliteral",     DIAGS(FormatNonLiteralDiags) },
   { "implicit-function-declaration", DIAGS(ImplicitFunctionDeclarationDiags) },
+  { "pointer-sign",          DIAGS(PointerSignDiags) },
   { "readonly-setter-attrs", DIAGS(ReadOnlySetterAttrsDiags) },
   { "undef",                 DIAGS(UndefDiags) },
   { "unused-macros",         DIAGS(UnusedMacrosDiags) },