diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-04-21 11:59:33 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-04-23 14:39:21 +0100 |
commit | 1923a33a7277009b2898840d671fdc8f8d1b3922 (patch) | |
tree | be7a2a6fdea0df53d2d79f2dde65550c64fedb88 | |
parent | d366da7d8c46b08673b9e36dd130608a311ded4b (diff) |
cairoint.h: Change ASSERT_NOT_REACHED to remove compiler warning
-rw-r--r-- | src/cairoint.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cairoint.h b/src/cairoint.h index f39b9a18..b4e8196a 100644 --- a/src/cairoint.h +++ b/src/cairoint.h @@ -138,8 +138,7 @@ _cairo_win32_tmpfile (void); #define ASSERT_NOT_REACHED \ do { \ - static const int NOT_REACHED = 0; \ - assert (NOT_REACHED); \ + assert (!"reached"); \ } while (0) #define COMPILE_TIME_ASSERT1(condition, line) \ typedef int compile_time_assertion_at_line_##line##_failed [(condition)?1:-1] |