This patch is part of a series of patches for speech-tools for Debian GNU/Linux, which primarily fix build errors with GCC 4.3 and newer. --- speech-tools-1.2.3.orig/testsuite/hash_example.cc +++ speech-tools-1.2.3/testsuite/hash_example.cc @@ -39,7 +39,7 @@ /************************************************************************/ #include -#include +#include #include #include "EST_THash.h" #include "EST_String.h" @@ -71,8 +71,8 @@ EST_THash logs(100); -logs.add_item(12, log(12)); -logs.add_item(34, log(34)); +logs.add_item(12, log((float)12)); +logs.add_item(34, log((float)34)); cout << "length of `fred' = " << lengths.val("fred") << "\n"; cout << "log of 34' = " << logs.val(34) << "\n"; @@ -135,7 +135,7 @@ } -Declare_THash(int,float) +Declare_THash_Base(int,float,0,0.0,NULL) #if defined(INSTANTIATE_TEMPLATES) #include "../base_class/EST_THash.cc"