No return type or other way to react to it.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
void clone_filename(char *buf, size_t len, int clones)
{
+#if __GNUC__ && __GNUC__ >= 8
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wformat-truncation"
+#endif
snprintf(buf, len, "%s/fsx-%s-parent%d",
dirpath, iname, clones);
+#if __GNUC__ && __GNUC__ >= 8
+#pragma GCC diagnostic pop
+#endif
}
void clone_imagename(char *buf, size_t len, int clones)