]> granicus.if.org Git - clang/commit
tweak warning options to be more like gcc:
authorChris Lattner <sabre@nondot.org>
Wed, 29 Apr 2009 04:15:07 +0000 (04:15 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 29 Apr 2009 04:15:07 +0000 (04:15 +0000)
commitbe8434a0cc0355f652d59553f8aaa3c88bfe3c94
tree1927729fdec905d24447f0f094588d2dae0a19c0
parentb9fc856696defc78750fdb4977c4dce34307a7f1
tweak warning options to be more like gcc:

1. All all variants of -Wformat*, make them imply -Wformat.  GCC warns
   if you use -Wformatfoo without -Wformat.  We just make one imply the
   other.
2. Make -Wformat-nonliteral default to off, like gcc.  It is an incredible
   nuisance.
3. Accept but currently ignore -Wformat-extra-args.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70362 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
test/Sema/format-strings.c