ImageIO: Use CGAL_USE to avoid warning

This commit is contained in:
Andreas Fabri 2022-02-17 15:55:56 +00:00 committed by Laurent Rineau
parent fb764adef8
commit db10b7afde
1 changed files with 2 additions and 2 deletions

View File

@ -2,6 +2,7 @@
#include <CGAL/Image_3.h> #include <CGAL/Image_3.h>
#include <CGAL/Random.h> #include <CGAL/Random.h>
#include <CGAL/Timer.h> #include <CGAL/Timer.h>
#include <CGAL/use.h>
#include <cassert> #include <cassert>
#include <iostream> #include <iostream>
@ -183,6 +184,7 @@ int main() {
0.f); 0.f);
} }
timer_old_implementation.stop(); timer_old_implementation.stop();
CGAL_USE(sum);
} }
std::cerr << "max difference = " << max_diff << "\n" std::cerr << "max difference = " << max_diff << "\n"
<< "timer new implementation: " << timer_new_implementation.time() << "timer new implementation: " << timer_new_implementation.time()
@ -253,5 +255,3 @@ int main() {
} }
std::cerr << counter << " tests. OK."; std::cerr << counter << " tests. OK.";
} }