Skip to content
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

i use gcc8.3.1 and now have a type error when make px4_fmu-v2 #12923

Open
Leon-LXA opened this issue Sep 8, 2019 · 3 comments
Open

i use gcc8.3.1 and now have a type error when make px4_fmu-v2 #12923

Leon-LXA opened this issue Sep 8, 2019 · 3 comments

Comments

@Leon-LXA
Copy link

Leon-LXA commented Sep 8, 2019

error: cast between incompatible function types from 'void ()(int, char)' to 'main_t' {aka 'int ()(int, char**)'} [-Werror=cast-function-type]
(main_t)&PX4IO::task_main_trampoline,
^~~~~~~~~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors

@jaejin0me
Copy link

"-Wno-cast-function-type" will be useful.
I recommend this article. About -Wextra and -Wcast-function-type

@julianoes
Copy link
Contributor

I think this one just needs fixing. @Richard-LXA would you mind creating a pull request with a fix?

@julianoes julianoes added the bug label Sep 25, 2019
@stale
Copy link

stale bot commented Dec 24, 2019

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

@stale stale bot added the stale label Dec 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants