From 72e18ed4aaab85c78bae22b27216e563858ebd17 Mon Sep 17 00:00:00 2001 From: RichardTea <31507749+RichardTea@users.noreply.github.com> Date: Fri, 26 Jul 2019 09:10:09 +0100 Subject: [PATCH] Fix Travis CI sign-compare warning EXPECT_* triggers sign compare error with literal 0 and unsigned Use 0u literal with size_t --- test/unit/ImportExport/utExporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/ImportExport/utExporter.cpp b/test/unit/ImportExport/utExporter.cpp index 4635be2a4..43e711cb3 100644 --- a/test/unit/ImportExport/utExporter.cpp +++ b/test/unit/ImportExport/utExporter.cpp @@ -76,7 +76,7 @@ TEST_F(ExporterTest, ProgressHandlerTest) { TEST_F(ExporterTest, ExporterIdTest) { Exporter exporter; size_t exportFormatCount = exporter.GetExportFormatCount(); - EXPECT_NE(0, exportFormatCount) << "No registered exporters"; + EXPECT_NE(0u, exportFormatCount) << "No registered exporters"; typedef std::map ExportIdMap; ExportIdMap exporterMap; for (size_t i = 0; i < exportFormatCount; ++i)