-werror, the following error occurred in compiling:
Src/wtk/exam/wtk_ndx.c:154:6: error:passing argument 3 of ' wtk_hlv_rec_init ' discards ' const ' qualifier from pointer Targ ET type [-werror]
ret = Wtk_hlv_rec_init (& (ND->REC_HD), & (CFG->REC_HD), Nd->hmmset, 0.02f);
^
In file included from src/wtk/exam/wtk_ndx.h:13:0,
From Src/wtk/exam/wtk_ndx.c:13:
function declaration: Int Wtk_hlv_rec_init (wtk_hlv_rec_t* r, Const wtk_hlv_rec_cfg_t* CFG, wtk_hmmset_t *hs, double Frame_dur);
Nd->hmmset is constant
WORKAROUND: 1) modify function declaration int Wtk_hlv_rec_init (wtk_hlv_rec_t* r, Const wtk_hlv_rec_cfg_t* CFG, const wtk_hmmset_t *h S, double Frame_dur);
2) Cast Wtk_hlv_rec_init when used (& (ND->REC_HD), & (CFG->REC_HD), (wtk_hmm_t *)Nd->hmmset, 0.02f) ;
Passing argument 3 of ' wtk_hlv_rec_init ' discards ' const ' qualifier from pointer target type