Suppress the deprecation warning when we're running under qtest,
to avoid "make check" including warning messages in its output.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id:
20240206154151.155620-1-peter.maydell@linaro.org
int tc58128_init(struct SH7750State *s, const char *zone1, const char *zone2)
{
- warn_report_once("The TC58128 flash device is deprecated");
+ if (!qtest_enabled()) {
+ warn_report_once("The TC58128 flash device is deprecated");
+ }
init_dev(&tc58128_devs[0], zone1);
init_dev(&tc58128_devs[1], zone2);
return sh7750_register_io_device(s, &tc58128);