Skip to content

Commit

Permalink
fix further warnings and newly introduced error
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Oct 1, 2013
1 parent 2b8c3b4 commit d1131d5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/undocumented/libshogun/converter_jade_bss.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ void test()
for(int i = 0; i < n_samples; i++)
{
// Sin wave
S(0,i) = sin(2*time(0,i));
S(0,i) = sin(2*time[i]);
S(0,i) += 0.2*CMath::randn_double();

// Square wave
S(1,i) = sin(3*time(0,i)) < 0 ? -1 : 1;
S(1,i) = sin(3*time[i]) < 0 ? -1 : 1;
S(1,i) += 0.2*CMath::randn_double();
}

Expand Down
1 change: 1 addition & 0 deletions src/shogun/io/HDF5File.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ hid_t CHDF5File::get_compatible_type(H5T_class_t t_class,
SG_ERROR("complex128_t not compatible with HDF5File!");
return -1;
case PT_SGOBJECT:
case PT_UNDEFINED:
SG_ERROR("Implementation error during writing "
"HDF5File!");
return -1;
Expand Down
1 change: 1 addition & 0 deletions src/shogun/io/SerializableJsonReader00.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ SerializableJsonReader00::read_scalar_wrapped(
" for reading from JsonFile!");
break;
case PT_SGOBJECT:
case PT_UNDEFINED:
SG_ERROR("read_scalar_wrapped(): Implementation error during"
" reading JsonFile!");
return false;
Expand Down

0 comments on commit d1131d5

Please sign in to comment.