From: Eli Friedman Date: Fri, 1 May 2009 20:41:13 +0000 (+0000) Subject: Add support for -Wno-format-zero-length. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e917aa31d3e042e135abce4b6b183eb27f58b79a;p=clang Add support for -Wno-format-zero-length. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70570 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticGroups.td b/include/clang/Basic/DiagnosticGroups.td index 40d3356c1e..8e9296db16 100644 --- a/include/clang/Basic/DiagnosticGroups.td +++ b/include/clang/Basic/DiagnosticGroups.td @@ -35,8 +35,9 @@ def : DiagGroup<"discard-qual">; def ExtraTokens : DiagGroup<"extra-tokens">; def FormatExtraArgs : DiagGroup<"format-extra-args">; +def FormatZeroLength : DiagGroup<"format-zero-length">; -def Format : DiagGroup<"format", [FormatExtraArgs]>; +def Format : DiagGroup<"format", [FormatExtraArgs, FormatZeroLength]>; def FormatSecurity : DiagGroup<"format-security", [Format]>; def FormatNonLiteral : DiagGroup<"format-nonliteral", [FormatSecurity]>; def FormatY2K : DiagGroup<"format-y2k", [Format]>; diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 6bd5dec7dc..0cbbfc750b 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -1526,7 +1526,7 @@ def warn_printf_invalid_conversion : Warning< def warn_printf_missing_format_string : Warning< "format string missing">, InGroup; def warn_printf_empty_format_string : Warning< - "format string is empty">, InGroup; + "format string is empty">, InGroup; def warn_printf_format_string_is_wide_literal : Warning< "format string should not be a wide string">, InGroup; def warn_printf_format_string_contains_null_char : Warning<