mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-02 06:08:01 +02:00
cairoint.h: Change ASSERT_NOT_REACHED to remove compiler warning
This commit is contained in:
parent
d366da7d8c
commit
1923a33a72
1 changed files with 1 additions and 2 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue