From 4ea34769babaa55b9acb00702524b98ef1ffa1ea36ea67038a687bd8ec925f83 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 17 Oct 2024 11:53:45 +0300 Subject: [PATCH] Silence useless warning --- cyac/lib/iter.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cyac/lib/iter.c b/cyac/lib/iter.c index 566fc73..cdecc00 100644 --- a/cyac/lib/iter.c +++ b/cyac/lib/iter.c @@ -145,7 +145,10 @@ YACIterBlob( return YACErrLenTooBig; } (*off) += got; +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wswitch-enum" switch (atom->typ) { +#pragma clang diagnostic pop case YACItemNIL: assert(len >= (*off)); if ((len - *off) <= chunkLen) { -- 2.48.1