# HG changeset patch # User Sebastien Jodogne # Date 1758636834 -7200 # Node ID c648a54cf67ce263d01f7d5c1392931a362141a5 # Parent a80c704e8594d96b552900810caf62f02f514900 fix warnings diff -r a80c704e8594 -r c648a54cf67c OrthancFramework/UnitTestsSources/ImageProcessingTests.cpp --- a/OrthancFramework/UnitTestsSources/ImageProcessingTests.cpp Tue Sep 23 16:10:50 2025 +0200 +++ b/OrthancFramework/UnitTestsSources/ImageProcessingTests.cpp Tue Sep 23 16:13:54 2025 +0200 @@ -94,7 +94,7 @@ ASSERT_DOUBLE_EQ(1.0, info.GetRescaleSlope()); ASSERT_DOUBLE_EQ(0.0, info.GetRescaleIntercept()); ASSERT_EQ(PhotometricInterpretation_Monochrome2, info.GetPhotometricInterpretation()); - ASSERT_EQ(0, info.GetWindowsCount()); + ASSERT_EQ(0u, info.GetWindowsCount()); ASSERT_DOUBLE_EQ(14.0, info.ApplyRescale(14.0)); } @@ -108,7 +108,7 @@ ASSERT_DOUBLE_EQ(-1.75, info.GetRescaleIntercept()); ASSERT_EQ(PhotometricInterpretation_Monochrome1, info.GetPhotometricInterpretation()); ASSERT_FALSE(info.HasWindows()); - ASSERT_EQ(0, info.GetWindowsCount()); + ASSERT_EQ(0u, info.GetWindowsCount()); ASSERT_THROW(info.GetWindow(0), OrthancException); ASSERT_DOUBLE_EQ(141.75, info.ApplyRescale(14.0)); } diff -r a80c704e8594 -r c648a54cf67c OrthancServer/UnitTestsSources/ServerConfigTests.cpp --- a/OrthancServer/UnitTestsSources/ServerConfigTests.cpp Tue Sep 23 16:10:50 2025 +0200 +++ b/OrthancServer/UnitTestsSources/ServerConfigTests.cpp Tue Sep 23 16:13:54 2025 +0200 @@ -98,7 +98,7 @@ context.SetAcceptedSopClasses(acceptedStorageClasses, rejectedStorageClasses); context.GetAcceptedSopClasses(s, 0); - ASSERT_EQ(1, s.size()); + ASSERT_EQ(1u, s.size()); ASSERT_TRUE(s.find("1.2.840.10008.5.1.4.1.1.4") != s.end()); ASSERT_TRUE(s.find("1.2.840.10008.5.1.4.1.1.12.1.1") == s.end()); } @@ -111,7 +111,7 @@ context.SetAcceptedSopClasses(acceptedStorageClasses, rejectedStorageClasses); context.GetAcceptedSopClasses(s, 0); - ASSERT_LE(10, s.size()); + ASSERT_LE(10u, s.size()); ASSERT_TRUE(s.find("1.2.840.10008.5.1.4.1.1.4") != s.end()); ASSERT_TRUE(s.find("1.2.840.10008.5.1.4.1.1.12.1.1") == s.end()); ASSERT_TRUE(s.find("1.2.840.10008.5.1.4.1.1.12.2.1") != s.end()); @@ -125,7 +125,7 @@ context.SetAcceptedSopClasses(acceptedStorageClasses, rejectedStorageClasses); context.GetAcceptedSopClasses(s, 0); - ASSERT_LE(10, s.size()); + ASSERT_LE(10u, s.size()); ASSERT_TRUE(s.find("1.2.840.10008.5.1.4.1.1.4") != s.end()); ASSERT_TRUE(s.find("1.2.840.10008.5.1.4.1.1.12.1.1") == s.end()); ASSERT_TRUE(s.find("1.2.840.10008.5.1.4.1.1.12.2.1") != s.end()); @@ -138,7 +138,7 @@ context.SetAcceptedSopClasses(acceptedStorageClasses, rejectedStorageClasses); context.GetAcceptedSopClasses(s, 0); - ASSERT_EQ(1, s.size()); + ASSERT_EQ(1u, s.size()); ASSERT_TRUE(s.find("1.2.3.4") != s.end()); }