• Sean McBride's avatar
    Fix -Wimplicit-fallthrough warnings; introduce VTK_FALLTHROUGH · 3cc4d9fc
    Sean McBride authored
    Fixed all clang -Wimplicit-fallthrough warnings:
    - Some fixed by adding missing breaks
    - Other fixed by adding VTK_FALLTHROUGH statement
    
    Under (modern) clang with C++11:
     #define VTK_FALLTHROUGH [[clang::fallthrough]]
    
    Otherwise:
     #define VTK_FALLTHROUGH ((void)0)
    
    VTK_FALLTHROUGH serves two purposes:
     - under clang, suppresses -Wimplicit-fallthrough warnings
     - makes code more self-documenting
    3cc4d9fc
Name
Last commit
Last update
..
Testing/Cxx Loading commit data...
CMakeLists.txt Loading commit data...
module.cmake Loading commit data...
vtkGL2PSContextDevice2D.cxx Loading commit data...
vtkGL2PSContextDevice2D.h Loading commit data...
vtkGL2PSUtilities.cxx Loading commit data...
vtkGL2PSUtilities.h Loading commit data...