summaryrefslogtreecommitdiff
path: root/audio/sphinx/files/patch-src-libsphinx2_search.c
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-12-10 22:29:47 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-12-10 22:29:47 +0000
commit72e8535d7a3d85419cc22db44eae481834e69afc (patch)
treeb6cb86094912efd70f4f947b3d2821fb10bad4b8 /audio/sphinx/files/patch-src-libsphinx2_search.c
parent- Fix build with GCC 4.2 (diff)
- Fix build with gcc 4.2
PR: 118467 Submitted by: Pietro Cerutti <gahr@gahr.ch> Approved by: portmgr (erwin)
Diffstat (limited to 'audio/sphinx/files/patch-src-libsphinx2_search.c')
-rw-r--r--audio/sphinx/files/patch-src-libsphinx2_search.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/audio/sphinx/files/patch-src-libsphinx2_search.c b/audio/sphinx/files/patch-src-libsphinx2_search.c
new file mode 100644
index 000000000000..1d6f423d4bcf
--- /dev/null
+++ b/audio/sphinx/files/patch-src-libsphinx2_search.c
@@ -0,0 +1,28 @@
+--- src/libsphinx2/search.c.orig 2007-12-06 18:29:23.000000000 +0100
++++ src/libsphinx2/search.c 2007-12-06 18:33:21.000000000 +0100
+@@ -2236,6 +2236,9 @@
+ lm_next_frame ();
+ }
+
++static void compute_phone_perplexity( void );
++static search_hyp_t *fwdtree_pscr_path ( void );
++
+ void
+ search_finish_fwd (void)
+ {
+@@ -2245,7 +2248,6 @@
+ CHAN_T *hmm, /* *thmm,*/ **acl;
+ /* int32 bp, bestbp, bestscore; */
+ /* int32 l_scr; */
+- static void compute_phone_perplexity( void );
+
+ if ((CurrentFrame > 0) && (topsen_window > 1)) {
+ /* Wind up remaining frames */
+@@ -2306,7 +2308,6 @@
+ /* Get pscr-score for fwdtree recognition */
+ {
+ search_hyp_t *pscrpath;
+- static search_hyp_t *fwdtree_pscr_path ( void );
+
+ if (query_phone_conf ()) {
+ pscrpath = fwdtree_pscr_path ();