From 3f47df577d05478a324b6eca80df0a33c838fab8 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 24 Mar 2021 12:38:08 +1100 Subject: Cleanup: use new BLI_assert_unreachable macro --- source/blender/imbuf/intern/thumbs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/imbuf/intern') diff --git a/source/blender/imbuf/intern/thumbs.c b/source/blender/imbuf/intern/thumbs.c index 0d2080b5f0a..61bc185eb8d 100644 --- a/source/blender/imbuf/intern/thumbs.c +++ b/source/blender/imbuf/intern/thumbs.c @@ -393,7 +393,7 @@ static ImBuf *thumb_create_ex(const char *file_path, img = IMB_thumb_load_font(file_path, tsize, tsize); break; default: - BLI_assert(0); /* This should never happen */ + BLI_assert_unreachable(); /* This should never happen */ } } @@ -738,7 +738,7 @@ void IMB_thumb_path_unlock(const char *path) if (thumb_locks.locked_paths) { if (!BLI_gset_remove(thumb_locks.locked_paths, key, MEM_freeN)) { - BLI_assert(0); + BLI_assert_unreachable(); } BLI_condition_notify_all(&thumb_locks.cond); } -- cgit v1.2.3