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

sched/wdog: fix signature for wdentry_t #52

Closed

Conversation

bruenn
Copy link

@bruenn bruenn commented Jun 15, 2019

gcc 8.2.1. doesn't allow lazy function pointer casting anymore. When building
px4-firmware 'make omnibus_f4sd_default' it complains:
wdog/wd_start.c:151:20: error: cast between incompatible function types from 'wdentry_t'

Changing the signature for wdentry_t will break cdcacm_rxtimeout(). To fix
this we use a va_list there.

Related to PX4/PX4-Autopilot#12283

gcc 8.2.1. doesn't allow lazy function pointer casting anymore. When building
px4-firmware 'make omnibus_f4sd_default' it complains:
wdog/wd_start.c:151:20: error: cast between incompatible function types from 'wdentry_t'

Changing the signature for wdentry_t will break cdcacm_rxtimeout(). To fix
this we use a va_list there.
@dagar
Copy link
Member

dagar commented Jun 15, 2019

Thanks @bruenn, we try to stay in sync with the upstream NuttX project. Could you contribute this to upstream NuttX (https://bitbucket.org/nuttx/nuttx/src/master/) and then we'll either backport the commit or pick it up the next time we upgrade.

@bruenn
Copy link
Author

bruenn commented Jun 16, 2019

@MaEtUgR
Copy link
Member

MaEtUgR commented Nov 4, 2019

I pushed a rebased version here: https://github.com/MaEtUgR/NuttX/tree/arm-gcc-9
To investigate further and get things running on ARM GCC 9 see PX4/PX4-Autopilot#13375

@MaEtUgR
Copy link
Member

MaEtUgR commented Feb 13, 2020

FYI when testing to compile on ARM GCC 9.2 with the latest NuttX version in use on master (fdf1837) I don't see this problem popping up anymore. I'm assuming it was fixed in upstream NuttX and we merged it since.

@julianoes julianoes closed this Feb 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants