瀏覽代碼

Merge branch '209-fix-vtk-transfer-function-test-warnings'

* 209-fix-vtk-transfer-function-test-warnings:
  Fix -Wunused-but-set-variable in transfer function tests
Jean-Christophe Fillion-Robin 11 年之前
父節點
當前提交
04b12f1d81

+ 1 - 0
Libs/Visualization/VTK/Core/Testing/Cpp/ctkVTKColorTransferFunctionTest1.cpp

@@ -205,6 +205,7 @@ int ctkVTKColorTransferFunctionTest1( int argc, char * argv [])
   defaultControlPoint = defaultTF.controlPoint(0);
   defaultControlPoint = defaultTF.controlPoint(firstIndex);
   defaultControlPoint = defaultTF.controlPoint(secondIndex);
+  Q_UNUSED(defaultControlPoint)
 
   colorTransferFunction->Delete();
   return EXIT_SUCCESS;

+ 1 - 0
Libs/Visualization/VTK/Core/Testing/Cpp/ctkVTKTransferFunctionRepresentationTest1.cpp

@@ -50,6 +50,7 @@ int ctkVTKTransferFunctionRepresentationTest1( int argc, char * argv [])
   defaultControlPoint = defaultCTF.controlPoint(0);
   defaultControlPoint = defaultCTF.controlPoint(firstIndex);
   defaultControlPoint = defaultCTF.controlPoint(secondIndex);
+  Q_UNUSED(defaultControlPoint)
 
   representation.computeCurve();
   representation.computeGradient();