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

duo : wdt : 编译告警 #6

Closed
unicornx opened this issue May 10, 2024 · 1 comment
Closed

duo : wdt : 编译告警 #6

unicornx opened this issue May 10, 2024 · 1 comment

Comments

@unicornx
Copy link
Collaborator

/home/u/ws/duo/rt-thread/bsp/cvitek/drivers/drv_wdt.c: In function '_wdt_control':
/home/u/ws/duo/rt-thread/bsp/cvitek/drivers/drv_wdt.c:119:38: warning: assignment to 'void *' from 'unsigned int' makes pointer from integer without a cast [-Wint-conversion]
  119 |         wdt_device->parent.user_data = (rt_uint32_t)(*(rt_uint32_t *)arg);
      |                                      ^
/home/u/ws/duo/rt-thread/bsp/cvitek/drivers/drv_wdt.c:122:31: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  122 |         *(rt_uint32_t *)arg = (rt_uint32_t)wdt_device->parent.user_data;
      |                               ^
@unicornx
Copy link
Collaborator Author

moved to RT-Thread#8933

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

No branches or pull requests

1 participant