+2021-06-29 Mike Frysinger <vapier@gentoo.org>
+
+ * main.c (sim_io_error): Add comment
+ * sim_calls.c (sim_io_error): Likewise. Change "" to " ".
+ (error): Likewise.
+
2021-06-20 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (INLINE_CFLAGS): Change to $(SIM_INLINE).
}
}
+/* Glue to use sim-fpu module. */
+
void
sim_io_error (SIM_DESC sd, const char *fmt, ...)
{
va_start(ap, fmt);
callbacks->evprintf_filtered (callbacks, fmt, ap);
va_end(ap);
- callbacks->error (callbacks, "");
+ /* Printing a space here avoids empty printf compiler warnings. Not ideal,
+ but we want error's side-effect where it halts processing. */
+ callbacks->error (callbacks, " ");
}
/****/
va_start(ap, msg);
callbacks->evprintf_filtered (callbacks, msg, ap);
va_end(ap);
- callbacks->error (callbacks, "");
+ /* Printing a space here avoids empty printf compiler warnings. Not ideal,
+ but we want error's side-effect where it halts processing. */
+ callbacks->error (callbacks, " ");
}
void *