commit | f6f633937d32479ebeebd265fae44566d4a3f1e4 | [log] [tgz] |
---|---|---|
author | Florian Loitsch <florian@loitsch.com> | Sun Nov 10 06:53:51 2013 +0100 |
committer | Florian Loitsch <florian@loitsch.com> | Sun Nov 10 06:53:51 2013 +0100 |
tree | c14c079a59b330ff1bda445d0ffcd25ec9c55d05 | |
parent | 865dbc7cd4286788259f6a6818f7996d8660579a [diff] |
Fix clang warning for unused variables (only used in ASSERT). BUG=41
diff --git a/src/utils.h b/src/utils.h index aa2e772..deb4bc1 100644 --- a/src/utils.h +++ b/src/utils.h
@@ -33,7 +33,10 @@ #include <assert.h> #ifndef ASSERT -#define ASSERT(condition) (assert(condition)) +#define ASSERT(condition) \ + do { \ + assert(condition); \ + } while (false && (condition)) #endif #ifndef UNIMPLEMENTED #define UNIMPLEMENTED() (abort())