clang by default doesn't seem to like printf calls with non-literal format strings. Add the proper pragma to disable this warning in the report function to make kvmtool compile with clang. Despite its GCC name, clang also accepts this. Signed-off-by: Andre Przywara <andre.przywara@xxxxxxx> --- util/util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/util/util.c b/util/util.c index 1877105..825da3f 100644 --- a/util/util.c +++ b/util/util.c @@ -10,6 +10,7 @@ #include <sys/stat.h> #include <sys/statfs.h> +#pragma GCC diagnostic ignored "-Wformat-nonliteral" static void report(const char *prefix, const char *err, va_list params) { char msg[1024]; -- 2.3.5 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html