Skip to content

Commit

Permalink
fix remaining warnings in parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Aug 11, 2011
1 parent 6a23b05 commit 2042a6d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/shogun/base/Parameter.cpp
Expand Up @@ -2153,6 +2153,8 @@ TParameter::save(CSerializableFile* file, const char* prefix)
return false;

switch (m_datatype.m_ctype) {
case CT_NDARRAY:
SG_SNOTIMPLEMENTED;
case CT_SCALAR:
if (!save_stype(file, m_parameter, prefix)) return false;
break;
Expand All @@ -2169,6 +2171,8 @@ TParameter::save(CSerializableFile* file, const char* prefix)
}

switch (m_datatype.m_ctype) {
case CT_NDARRAY:
SG_SNOTIMPLEMENTED;
case CT_VECTOR:
len_real_x = 1; break;
case CT_MATRIX:
Expand Down Expand Up @@ -2237,6 +2241,8 @@ TParameter::load(CSerializableFile* file, const char* prefix)

switch (m_datatype.m_ctype)
{
case CT_NDARRAY:
SG_SNOTIMPLEMENTED;
case CT_SCALAR:
if (!load_stype(file, m_parameter, prefix))
return false;
Expand All @@ -2251,6 +2257,8 @@ TParameter::load(CSerializableFile* file, const char* prefix)

switch (m_datatype.m_ctype)
{
case CT_NDARRAY:
SG_SNOTIMPLEMENTED;
case CT_VECTOR:
len_read_x = 1;
new_cont(len_read_y, len_read_x);
Expand Down Expand Up @@ -2281,6 +2289,8 @@ TParameter::load(CSerializableFile* file, const char* prefix)

switch (m_datatype.m_ctype)
{
case CT_NDARRAY:
SG_SNOTIMPLEMENTED;
case CT_VECTOR:
*m_datatype.m_length_y = len_read_y;
break;
Expand Down

0 comments on commit 2042a6d

Please sign in to comment.