Skip to content

Commit

Permalink
COMP: Add switch default for point component type
Browse files Browse the repository at this point in the history
To address macos-14 CI build warning:

src/itkMZ3MeshIO.cxx:484:11: warning: 11 enumeration values not handled in switch: 'UNKNOWNCOMPONENTTYPE', 'UCHAR', 'CHAR'... [-Wswitch]
  • Loading branch information
thewtex committed Dec 3, 2024
1 parent d17f463 commit 9bc74b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/itkMZ3MeshIO.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,10 @@ MZ3MeshIO::WritePoints(void * buffer)
WritePoints(static_cast<long double *>(buffer));
break;
}
default:
{
itkExceptionMacro("Unsupported point component type");
}
}
}

Expand Down

0 comments on commit 9bc74b5

Please sign in to comment.