Move assert to static_assert ClangTidy pointed this out. Change-Id: I59f34bb58a0336fe30fe5f4ce6e118a1b47bbb87 Reviewed-on: https://skia-review.googlesource.com/c/skcms/+/823734 Auto-Submit: Kevin Lubick <kjlubick@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Kevin Lubick <kjlubick@google.com>
diff --git a/skcms.cc b/skcms.cc index 576c4f8..e2565b3 100644 --- a/skcms.cc +++ b/skcms.cc
@@ -1237,7 +1237,7 @@ bool skcms_ParseWithA2BPriority(const void* buf, size_t len, const int priority[], const int priorities, skcms_ICCProfile* profile) { - assert(SAFE_SIZEOF(header_Layout) == 132); + static_assert(SAFE_SIZEOF(header_Layout) == 132, "need to update header code"); if (!profile) { return false;