diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-29 04:15:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-29 04:15:07 +0000 |
commit | 941153afcd965c9437b268c5a9320b506df4d882 (patch) | |
tree | a7f838c3e7027c412d11d17cff0f20e883af6615 /clang/test/Sema/format-strings.c | |
parent | e3fa5aa91c8d821e7908c0cd2a307c52d0bd0036 (diff) | |
download | bcm5719-llvm-941153afcd965c9437b268c5a9320b506df4d882.tar.gz bcm5719-llvm-941153afcd965c9437b268c5a9320b506df4d882.zip |
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.
llvm-svn: 70362
Diffstat (limited to 'clang/test/Sema/format-strings.c')
-rw-r--r-- | clang/test/Sema/format-strings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/format-strings.c b/clang/test/Sema/format-strings.c index cbeadc20b82..c7392c1f0c9 100644 --- a/clang/test/Sema/format-strings.c +++ b/clang/test/Sema/format-strings.c @@ -1,4 +1,4 @@ -// RUN: clang-cc -fsyntax-only -verify %s +// RUN: clang-cc -fsyntax-only -verify -Wformat-nonliteral %s // Define this to get vasprintf on Linux #define _GNU_SOURCE |