mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-02 20:20:37 +02:00
cairoint.h: Add call to abort in ASSERT_NOT_REACHED
Fixes the following warning on ClangCL:
../cairo/src/cairo-colr-glyph-render.c(196,1): warning: non-void function does not return a value in all control paths [-Wreturn-type]
196 | }
| ^
1 warning generated.
This commit is contained in:
parent
75ca66c31d
commit
df6dc62198
1 changed files with 3 additions and 0 deletions
|
|
@ -140,7 +140,10 @@ CAIRO_BEGIN_DECLS
|
|||
#define ASSERT_NOT_REACHED \
|
||||
do { \
|
||||
assert (!"reached"); \
|
||||
abort (); \
|
||||
} while (0)
|
||||
|
||||
|
||||
#define COMPILE_TIME_ASSERT1(condition, line) \
|
||||
typedef int compile_time_assertion_at_line_##line##_failed [(condition)?1:-1]
|
||||
#define COMPILE_TIME_ASSERT0(condition, line) COMPILE_TIME_ASSERT1(condition, line)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue