Skip to content

Commit

Permalink
replay: Fix declaration of replay_read_next_clock
Browse files Browse the repository at this point in the history
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: 8eda206 ("replay: recording and replaying clock ticks")
Signed-off-by: Richard Henderson <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Wilfred Mallawa <[email protected]>
Reviewed-by: Pavel Dovgalyuk <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
Message-Id: <[email protected]>
  • Loading branch information
rth7680 authored and stefanhaRH committed Nov 29, 2022
1 parent ac14949 commit fb72e77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion replay/replay-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,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 */

Expand Down

0 comments on commit fb72e77

Please sign in to comment.