Passing argument 3 of ' wtk_hlv_rec_init ' discards ' const ' qualifier from pointer target type

Source: Internet
Author: User

-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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.