summaryrefslogtreecommitdiffstats
path: root/src/H5Zshuffle.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2013-08-22 13:50:21 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2013-08-22 13:50:21 (GMT)
commitb8745fce87e0f7024ab51aef1bab1bb3aae5acd2 (patch)
tree28b6eb89efcc6229afb94a82ba8fcb4ec3620538 /src/H5Zshuffle.c
parentd283a83a49a7e44a941268feb08eba241b571831 (diff)
downloadhdf5-b8745fce87e0f7024ab51aef1bab1bb3aae5acd2.zip
hdf5-b8745fce87e0f7024ab51aef1bab1bb3aae5acd2.tar.gz
hdf5-b8745fce87e0f7024ab51aef1bab1bb3aae5acd2.tar.bz2
[svn-r24054] merge r 24027 from trunk.
This is the fix for "switch missing default case" warnings in src. Mohamad & Vailin worked on this patch.
Diffstat (limited to 'src/H5Zshuffle.c')
-rw-r--r--src/H5Zshuffle.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/H5Zshuffle.c b/src/H5Zshuffle.c
index 7aa0202..90509b0 100644
--- a/src/H5Zshuffle.c
+++ b/src/H5Zshuffle.c
@@ -183,6 +183,9 @@ H5Z_filter_shuffle(unsigned flags, size_t cd_nelmts, const unsigned cd_values[],
duffs_index = (numofelements + 7) / 8;
switch (numofelements % 8) {
+ default:
+ HDassert(0 && "This Should never be executed!");
+ break;
case 0:
do
{
@@ -238,6 +241,9 @@ H5Z_filter_shuffle(unsigned flags, size_t cd_nelmts, const unsigned cd_values[],
duffs_index = (numofelements + 7) / 8;
switch (numofelements % 8) {
+ default:
+ HDassert(0 && "This Should never be executed!");
+ break;
case 0:
do
{