diff options
| author | Matt Beaumont-Gay <matthewbg@google.com> | 2012-10-23 23:19:32 +0000 |
|---|---|---|
| committer | Matt Beaumont-Gay <matthewbg@google.com> | 2012-10-23 23:19:32 +0000 |
| commit | 493d6d55ba6f11f27dffa36781e9d653aacd7f70 (patch) | |
| tree | b51fafc9fa854af3ee50400dc065060b950f41a6 /clang/test/Sema/unused-expr.c | |
| parent | 949cc509621a61e243099eb831773c1761c06274 (diff) | |
| download | bcm5719-llvm-493d6d55ba6f11f27dffa36781e9d653aacd7f70.tar.gz bcm5719-llvm-493d6d55ba6f11f27dffa36781e9d653aacd7f70.zip | |
Don't emit -Wunused-value warnings from macro expansions.
llvm-svn: 166522
Diffstat (limited to 'clang/test/Sema/unused-expr.c')
| -rw-r--r-- | clang/test/Sema/unused-expr.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Sema/unused-expr.c b/clang/test/Sema/unused-expr.c index 056d09a8713..6677e48300a 100644 --- a/clang/test/Sema/unused-expr.c +++ b/clang/test/Sema/unused-expr.c @@ -122,3 +122,10 @@ void f(int i, ...) { // PR8371 int fn5() __attribute__ ((__const)); + +// OpenSSL has some macros like this. +#define M(a, b) (long)foo((a), (b)) +void t11(int i, int j) { + M(i, j); // no warning +} +#undef M |

