-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in build process (dangling-pointer) #37
Comments
i'm also struggling with the same problem in a specific machine, works fine on every other machine i tried to build it /home/ecl/video-coding/tools/xevd/src_main/xevdm.c: In function ‘xevd_apply_filter’: |
@m4a1carbin4 @eclvideocoding I have modified the codebase to fix this compilation error due to dangling pointer. Please clone this branch xevd_compiler_error_fix and let us know if you still observe the compiler error or any related issue. |
I was trying to build xevd in my linux - system
but During the build process, my system always sends this warnings and faild to "make"
/home/waganawa/문서/RA/xevd/src_main/xevdm.c: In function ‘xevd_apply_filter’:
/home/waganawa/문서/RA/xevd/src_main/xevdm.c:3204:34: error: storing the address of local variable ‘g_dra_control_effective’ in ‘*mctx.pps_dra_params’ [-Werror=dangling-pointer=]
3204 | mctx->pps_dra_params = (void )&(g_dra_control_effective.signalled_dra);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/waganawa/문서/RA/xevd/src_main/xevdm.c:3187:21: note: ‘g_dra_control_effective’ declared here
3187 | DRA_CONTROL g_dra_control_effective;
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/waganawa/문서/RA/xevd/src_main/xevdm.c:3187:21: note: ‘ctx’ declared here
/home/waganawa/문서/RA/xevd/src_main/xevdm.c: In function ‘xevd_decode’:
/home/waganawa/문서/RA/xevd/src_main/xevdm.c:3610:34: error: storing the address of local variable ‘dra_control_effective’ in ‘(XEVDM_CTX *)id.pps_dra_params’ [-Werror=dangling-pointer=]
3610 | mctx->pps_dra_params = &(dra_control_effective.signalled_dra);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/waganawa/문서/RA/xevd/src_main/xevdm.c:3593:17: note: ‘dra_control_effective’ declared here
3593 | DRA_CONTROL dra_control_effective;
| ^~~~~~~~~~~~~~~~~~~~~
/home/waganawa/문서/RA/xevd/src_main/xevdm.c:3593:17: note: ‘id’ declared here
cc1: all warnings being treated as errors
is there something I missed?
The text was updated successfully, but these errors were encountered: