[lttng-dev] [PATCH] lttv: C99 compatibility fix

Florian Weimer fweimer at redhat.com
Tue Jan 10 05:54:22 EST 2023

While rebuilding Fedora with a C99 compiler, we noticed that we need
this patch to avoid a compilation error:

diff --git a/lttv/lttv/state.c b/lttv/lttv/state.c
index 513c1bf3bb03ec7a..a1a31df2cbe6be30 100644
--- a/lttv/lttv/state.c
+++ b/lttv/lttv/state.c
@@ -271,7 +271,7 @@ gboolean rettrue(gpointer key, gpointer value, gpointer user_data)
 	return TRUE;
-static guint check_expand(nb, id)
+static guint check_expand(int nb, int id)
 	if(likely(nb > id))
 		return nb;

Related to:



More information about the lttng-dev mailing list