From 30eca52dce7807596290331f6d8bfe7432d1bd10 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Thu, 1 Oct 2020 09:25:51 +0200 Subject: [PATCH] testing/setup-googletest.h: Explicitly ignore the result of RUN_ALL_TESTS To silence a warning, explicitly ignore the return value of `RUN_ALL_TESTS`: we exit on failure anyway, the return value isn't useful for us in any way. Signed-off-by: Gergely Nagy --- testing/setup-googletest.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testing/setup-googletest.h b/testing/setup-googletest.h index 36dbeede..38852dbe 100644 --- a/testing/setup-googletest.h +++ b/testing/setup-googletest.h @@ -36,5 +36,7 @@ /* Turn off virtual_io's input. */ \ Kaleidoscope.device().keyScanner().setEnableReadMatrix(false); \ testing::InitGoogleTest(); \ - RUN_ALL_TESTS(); \ + /* We assign the return value of RUN_ALL_TESTS, to */ \ + /* silence a compiler warning. */ \ + int __ignore__ = RUN_ALL_TESTS(); \ }