All of lore.kernel.org
 help / color / mirror / Atom feed
* [lttng-dev] [PATCH] lttv: C99 compatibility fix
@ 2023-01-10 10:54 Florian Weimer via lttng-dev
  2023-01-10 19:46 ` [lttng-dev] lttv: Document project status as unmaintained Mathieu Desnoyers via lttng-dev
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Weimer via lttng-dev @ 2023-01-10 10:54 UTC (permalink / raw)
  To: lttng-dev

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:

  <https://fedoraproject.org/wiki/Changes/PortingToModernC>
  <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>

Thanks,
Florian

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-01-11 11:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-10 10:54 [lttng-dev] [PATCH] lttv: C99 compatibility fix Florian Weimer via lttng-dev
2023-01-10 19:46 ` [lttng-dev] lttv: Document project status as unmaintained Mathieu Desnoyers via lttng-dev
2023-01-11 11:01   ` Florian Weimer via lttng-dev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.