diff options
Diffstat (limited to 'tests/SortTest.cpp')
-rw-r--r-- | tests/SortTest.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/SortTest.cpp b/tests/SortTest.cpp index 166cff280b..4a5631daef 100644 --- a/tests/SortTest.cpp +++ b/tests/SortTest.cpp @@ -10,7 +10,7 @@ #include "SkTSort.h" extern "C" { - int compare_int(const void* a, const void* b) { + static int compare_int(const void* a, const void* b) { return *(const int*)a - *(const int*)b; } } @@ -44,6 +44,9 @@ static void TestSort(skiatest::Reporter* reporter) { SkTHeapSort<int>(array, count); check_sort(reporter, "Heap", array, count); } + if (false) { // avoid bit rot, suppress warning + compare_int(array, array); + } } // need tests for SkStrSearch |