summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-04-21 11:59:33 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-04-23 14:39:21 +0100
commit1923a33a7277009b2898840d671fdc8f8d1b3922 (patch)
treebe7a2a6fdea0df53d2d79f2dde65550c64fedb88
parentd366da7d8c46b08673b9e36dd130608a311ded4b (diff)
cairoint.h: Change ASSERT_NOT_REACHED to remove compiler warning
-rw-r--r--src/cairoint.h3
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]