Skip to content
  • Dave DeMarle's avatar
    Fix may be used uninitialized warnings. · 85752e97
    Dave DeMarle authored
    We get:
    /home/kitware/dashboards/VTK/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx: In member function virtual bool vtkMatplotlibMathTextUtilities::StringToPath(const char*, vtkPath*, vtkTextProperty*):
    /home/kitware/dashboards/VTK/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx:728:74: warning: origin[0] may be used uninitialized in this function [-Wmaybe-uninitialized]
    /home/kitware/dashboards/VTK/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx:728:74: warning: origin[1] may be used uninitialized in this function [-Wmaybe-uninitialized]
    /home/kitware/dashboards/VTK/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx:727:9: warning: hasOrigin may be used uninitialized in this function [-Wmaybe-uninitialized]
    
    From the case: pathClosePoly code path.
    I think the correct solution is to initialize the hasOrigin flag to no but I could be wrong.
    
    Change-Id: Ia3fbc63bb0bb2898aca173ea63801e05ae8937a5
    85752e97