]> Cypherpunks repositories - keks.git/commitdiff
Silence useless warning
authorSergey Matveev <stargrave@stargrave.org>
Thu, 17 Oct 2024 08:53:45 +0000 (11:53 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 17 Oct 2024 08:53:45 +0000 (11:53 +0300)
cyac/lib/iter.c

index 566fc73bf7c91c65f5d365a7210c78f67741cc87a5837adda5211c6bc21b935c..cdecc00c4230efd0e310168d4f6e0066010e9a15bf5d83b8e25323af9ecbbec5 100644 (file)
@@ -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) {