From: Richard Henderson Date: Tue, 29 Nov 2022 01:05:47 +0000 (-0800) Subject: replay: Fix declaration of replay_read_next_clock X-Git-Tag: qemu-xen-4.17.2~2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=97e8df50760afab883f7d58a0c8dcde30aa28e0f;p=qemu-xen.git replay: Fix declaration of replay_read_next_clock Fixes the build with gcc 13: replay/replay-time.c:34:6: error: conflicting types for \ 'replay_read_next_clock' due to enum/integer mismatch; \ have 'void(ReplayClockKind)' [-Werror=enum-int-mismatch] 34 | void replay_read_next_clock(ReplayClockKind kind) | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ../qemu/replay/replay-time.c:14: replay/replay-internal.h:139:6: note: previous declaration of \ 'replay_read_next_clock' with type 'void(unsigned int)' 139 | void replay_read_next_clock(unsigned int kind); | ^~~~~~~~~~~~~~~~~~~~~~ Fixes: 8eda206e090 ("replay: recording and replaying clock ticks") Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Wilfred Mallawa Reviewed-by: Pavel Dovgalyuk Signed-off-by: Stefan Hajnoczi Message-Id: <20221129010547.284051-1-richard.henderson@linaro.org> (cherry picked from commit fb72e779ebe3a51f55b16a49738380ee3e54c7d5) --- diff --git a/replay/replay-internal.h b/replay/replay-internal.h index 97649ed8d7..b4238226f4 100644 --- a/replay/replay-internal.h +++ b/replay/replay-internal.h @@ -141,7 +141,7 @@ bool replay_next_event_is(int event); /*! Reads next clock value from the file. If clock kind read from the file is different from the parameter, the value is not used. */ -void replay_read_next_clock(unsigned int kind); +void replay_read_next_clock(ReplayClockKind kind); /* Asynchronous events queue */