Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
编译警告
编译错误
官网下的rtthread源码 keil5mdk 编译全是警告和错误
发布于 2024-03-02 17:14:15 浏览:944
订阅该版
打开keil工程显示 ![405542E1B5002D3F5A528A6F873A16FA.jpg](https://oss-club.rt-thread.org/uploads/20240302/405542e1b5002d3f5a528a6f873a16fa.jpg.webp) 编译后显示 ``` Rebuild started: Project: project *** Using Compiler 'V5.06 update 5 (build 528)', folder: 'D:\keil5\ARM\ARMCC\Bin' Rebuild target 'rt-thread' compiling cctype.c... compiling cunistd.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\components\libc\compilers\common\cunistd.c: 2 warnings, 0 errors compiling cwchar.c... compiling syscall_mem.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\components\libc\compilers\armlibc\syscall_mem.c: 2 warnings, 0 errors compiling cstdlib.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\components\libc\compilers\common\cstdlib.c: 2 warnings, 0 errors compiling completion.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\components\drivers\ipc\completion.c: 2 warnings, 0 errors compiling cstring.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\components\libc\compilers\common\cstring.c: 2 warnings, 0 errors compiling syscalls.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\components\libc\compilers\armlibc\syscalls.c: 2 warnings, 0 errors compiling device.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\components\drivers\core\device.c: 2 warnings, 0 errors compiling ctime.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\components\libc\compilers\common\ctime.c: 2 warnings, 0 errors compiling pipe.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\components\drivers\ipc\pipe.c: 2 warnings, 0 errors compiling dataqueue.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\components\drivers\ipc\dataqueue.c: 2 warnings, 0 errors compiling ringblk_buf.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\components\drivers\ipc\ringblk_buf.c: 2 warnings, 0 errors compiling waitqueue.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\components\drivers\ipc\waitqueue.c: 2 warnings, 0 errors compiling ringbuffer.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\components\drivers\ipc\ringbuffer.c: 2 warnings, 0 errors compiling workqueue.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\components\drivers\ipc\workqueue.c: 2 warnings, 0 errors compiling pin.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\components\drivers\pin\pin.c: 2 warnings, 0 errors assembling startup_stm32f103xb.s... compiling serial.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\components\drivers\serial\serial.c: 2 warnings, 0 errors compiling dfs_posix.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\components\dfs\dfs_v1\src\dfs_posix.c: 2 warnings, 0 errors compiling dfs_fs.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\components\dfs\dfs_v1\src\dfs_fs.c: 2 warnings, 0 errors compiling dfs.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\components\dfs\dfs_v1\src\dfs.c: 2 warnings, 0 errors compiling dfs_file.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\components\dfs\dfs_v1\src\dfs_file.c: 2 warnings, 0 errors compiling msh_parse.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\components\finsh\msh_parse.c: 2 warnings, 0 errors compiling shell.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\components\finsh\shell.c: 2 warnings, 0 errors compiling msh.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\components\finsh\msh.c: 2 warnings, 0 errors compiling cmd.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\components\finsh\cmd.c: 2 warnings, 0 errors compiling clock.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\src\clock.c(100): warning: #223-D: function "rt_sched_tick_increase" declared implicitly rt_sched_tick_increase(); ..\..\..\src\clock.c: 3 warnings, 0 errors compiling components.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\src\components.c: 2 warnings, 0 errors compiling msh_file.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\components\finsh\msh_file.c: 2 warnings, 0 errors compiling idle.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\src\idle.c: 2 warnings, 0 errors compiling irq.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\src\irq.c: 2 warnings, 0 errors compiling mem.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\src\mem.c: 2 warnings, 0 errors compiling kservice.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\src\kservice.c: 2 warnings, 0 errors compiling ipc.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\src\ipc.c(118): warning: #223-D: function "rt_sched_thread_ready" declared implicitly error = rt_sched_thread_ready(thread); ..\..\..\src\ipc.c(262): warning: #223-D: function "rt_sched_thread_get_curr_prio" declared implicitly if (rt_sched_thread_get_curr_prio(thread) < rt_sched_thread_get_curr_prio(sthread)) ..\..\..\src\ipc.c(830): warning: #223-D: function "rt_sched_thread_get_curr_prio" declared implicitly mutex->priority = rt_sched_thread_get_curr_prio(thread); ..\..\..\src\ipc.c(845): warning: #223-D: function "rt_sched_thread_get_init_prio" declared implicitly rt_uint8_t priority = rt_sched_thread_get_init_prio(thread); ..\..\..\src\ipc.c(872): warning: #223-D: function "rt_sched_thread_change_priority" declared implicitly ret = rt_sched_thread_change_priority(thread, priority); ..\..\..\src\ipc.c(874): warning: #223-D: function "rt_sched_thread_is_suspended" declared implicitly while ((ret == T_EOK) && rt_sched_thread_is_suspended(thread)) ..\..\..\src\ipc.c(899): warning: #223-D: function "rt_sched_thread_get_curr_prio" declared implicitly if (mutex_priority != rt_sched_thread_get_curr_prio(pending_mutex->owner)) ..\..\..\src\ipc.c(923): warning: #223-D: function "rt_sched_thread_get_curr_prio" declared implicitly if ((mutex->ceiling_priority != 0xFF) || (rt_sched_thread_get_curr_prio(thread) == mutex->priority)) ..\..\..\src\ipc.c(930): warning: #223-D: function "rt_sched_thread_change_priority" declared implicitly rt_sched_thread_change_priority(thread, priority); ..\..\..\src\ipc.c(1099): warning: #223-D: function "rt_sched_thread_get_curr_prio" declared implicitly if (mutex->owner && rt_sched_thread_get_curr_prio(mutex->owner) == ..\..\..\src\ipc.c(1113): warning: #223-D: function "rt_sched_thread_get_curr_prio" declared implicitly mutex->priority = rt_sched_thread_get_curr_prio(th); ..\..\..\src\ipc.c(1126): warning: #223-D: function "rt_sched_thread_get_curr_prio" declared implicitly if (priority != rt_sched_thread_get_curr_prio(mutex->owner)) ..\..\..\src\ipc.c(1163): warning: #223-D: function "rt_sched_thread_get_curr_prio" declared implicitly if (highest_prio != rt_sched_thread_get_curr_prio(mutex->owner)) ..\..\..\src\ipc.c(1372): warning: #223-D: function "rt_sched_thread_get_curr_prio" declared implicitly if (mutex->ceiling_priority < rt_sched_thread_get_curr_prio(mutex->owner)) ..\..\..\src\ipc.c(1413): warning: #223-D: function "rt_sched_thread_get_curr_prio" declared implicitly priority = rt_sched_thread_get_curr_prio(thread); ..\..\..\src\ipc.c(1633): warning: #223-D: function "rt_sched_thread_is_suspended" declared implicitly T_ASSERT(rt_sched_thread_is_suspended(next_thread)); ..\..\..\src\ipc.c(1639): warning: #223-D: function "rt_sched_thread_ready" declared implicitly if (rt_sched_thread_ready(next_thread) != RT_EOK) ..\..\..\src\ipc.c(1668): warning: #223-D: function "rt_sched_thread_get_curr_prio" declared implicitly mutex->priority = rt_sched_thread_get_curr_prio(th); ..\..\..\src\ipc.c(2027): warning: #223-D: function "rt_sched_thread_ready" declared implicitly rt_sched_thread_ready(thread); ..\..\..\src\ipc.c: 21 warnings, 0 errors compiling mempool.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\src\mempool.c: 2 warnings, 0 errors compiling object.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\src\object.c: 2 warnings, 0 errors compiling scheduler_comm.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\src\scheduler_comm.c(30): warning: #223-D: function "rt_sched_thread_init_priv" declared implicitly rt_sched_thread_init_priv(thread, tick, priority); ..\..\..\src\scheduler_comm.c(140): warning: #223-D: function "rt_sched_insert_thread" declared implicitly rt_sched_insert_thread(thread); ..\..\..\src\scheduler_comm.c(184): warning: #223-D: function "rt_sched_remove_thread" declared implicitly rt_sched_remove_thread(thread); ..\..\..\src\scheduler_comm.c(200): warning: #223-D: function "rt_sched_insert_thread" declared implicitly rt_sched_insert_thread(thread); ..\..\..\src\scheduler_comm.c: 6 warnings, 0 errors compiling scheduler_up.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\src\scheduler_up.c(240): warning: #223-D: function "rt_sched_remove_thread" declared implicitly rt_sched_remove_thread(to_thread); ..\..\..\src\scheduler_up.c(309): warning: #223-D: function "rt_sched_insert_thread" declared implicitly rt_sched_insert_thread(from_thread); ..\..\..\src\scheduler_up.c(317): warning: #223-D: function "rt_sched_remove_thread" declared implicitly rt_sched_remove_thread(to_thread); ..\..\..\src\scheduler_up.c(375): warning: #223-D: function "rt_sched_remove_thread" declared implicitly rt_sched_remove_thread(rt_current_thread); ..\..\..\src\scheduler_up.c(432): error: #159: declaration is incompatible with previous "rt_sched_insert_thread" (declared at line 309) void rt_sched_insert_thread(struct rt_thread *thread) ..\..\..\src\scheduler_up.c(484): error: #159: declaration is incompatible with previous "rt_sched_remove_thread" (declared at line 240) void rt_sched_remove_thread(struct rt_thread *thread) ..\..\..\src\scheduler_up.c: 6 warnings, 2 errors compiling thread.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\src\thread.c(92): warning: #223-D: function "rt_sched_remove_thread" declared implicitly rt_sched_remove_thread(thread); ..\..\..\src\thread.c(98): warning: #223-D: function "rt_sched_thread_close" declared implicitly rt_sched_thread_close(thread); ..\..\..\src\thread.c(134): warning: #223-D: function "rt_sched_thread_is_suspended" declared implicitly T_ASSERT(rt_sched_thread_is_suspended(thread)); ..\..\..\src\thread.c(142): warning: #223-D: function "rt_sched_insert_thread" declared implicitly rt_sched_insert_thread(thread); ..\..\..\src\thread.c(193): warning: #223-D: function "rt_sched_thread_init_ctx" declared implicitly rt_sched_thread_init_ctx(thread, tick, priority); ..\..\..\src\thread.c(403): warning: #223-D: function "rt_sched_thread_startup" declared implicitly rt_sched_thread_startup(thread); ..\..\..\src\thread.c(451): warning: #223-D: function "rt_sched_thread_get_stat" declared implicitly thread_status = rt_sched_thread_get_stat(thread); ..\..\..\src\thread.c(457): warning: #223-D: function "rt_sched_remove_thread" declared implicitly rt_sched_remove_thread(thread); ..\..\..\src\thread.c(464): warning: #223-D: function "rt_sched_thread_close" declared implicitly rt_sched_thread_close(thread); ..\..\..\src\thread.c(579): warning: #223-D: function "rt_sched_thread_yield" declared implicitly rt_sched_thread_yield(rt_thread_self()); ..\..\..\src\thread.c(782): warning: #223-D: function "rt_sched_thread_change_priority" declared implicitly error = rt_sched_thread_change_priority(thread, *(rt_uint8_t *)arg); ..\..\..\src\thread.c(815): warning: #223-D: function "rt_sched_thread_bind_cpu" declared implicitly return rt_sched_thread_bind_cpu(thread, cpu); ..\..\..\src\thread.c(893): warning: #223-D: function "rt_sched_thread_get_stat" declared implicitly stat = rt_sched_thread_get_stat(thread); ..\..\..\src\thread.c(932): warning: #223-D: function "rt_sched_remove_thread" declared implicitly rt_sched_remove_thread(thread); ..\..\..\src\thread.c(945): warning: #223-D: function "rt_sched_thread_timer_stop" declared implicitly rt_sched_thread_timer_stop(thread); ..\..\..\src\thread.c(1003): warning: #223-D: function "rt_sched_thread_ready" declared implicitly error = rt_sched_thread_ready(thread); ..\..\..\src\thread.c: 18 warnings, 0 errors compiling timer.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\src\timer.c(532): warning: #223-D: function "rt_sched_thread_timer_start" declared implicitly rt_sched_thread_timer_start(thread); ..\..\..\src\timer.c(51): warning: #550-D: variable "_soft_timer_status" was set but never used static rt_uint8_t _soft_timer_status = RT_SOFT_TIMER_IDLE; ..\..\..\src\timer.c(112): warning: #177-D: function "_timerhead_idx" was declared but never referenced rt_inline rt_list_t* _timerhead_idx(struct rt_timer *timer) ..\..\..\src\timer.c: 5 warnings, 0 errors compiling div0.c... compiling main.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; applications\main.c: 2 warnings, 0 errors compiling atomic_arm.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\libcpu\arm\common\atomic_arm.c: 2 warnings, 0 errors compiling user_key.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; board\ports\user_key.c: 2 warnings, 0 errors assembling context_rvds.S... compiling board.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; board\board.c: 2 warnings, 0 errors compiling showmem.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\libcpu\arm\common\showmem.c: 2 warnings, 0 errors compiling drv_gpio.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\libraries\HAL_Drivers\drivers\drv_gpio.c: 2 warnings, 0 errors compiling stm32f1xx_hal_msp.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; board\CubeMX_Config\Src\stm32f1xx_hal_msp.c: 2 warnings, 0 errors compiling drv_common.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\libraries\HAL_Drivers\drv_common.c: 2 warnings, 0 errors compiling cpuport.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\libcpu\arm\cortex-m3\cpuport.c: 2 warnings, 0 errors compiling drv_usart.c... ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored T_SCHED_THREAD_CTX; ..\libraries\HAL_Drivers\drivers\drv_usart.c: 2 warnings, 0 errors compiling stm32f1xx_hal.c... compiling stm32f1xx_hal_cec.c... compiling stm32f1xx_hal_rcc_ex.c... compiling system_stm32f1xx.c... compiling stm32f1xx_hal_crc.c... compiling stm32f1xx_hal_gpio_ex.c... compiling stm32f1xx_hal_cortex.c... compiling stm32f1xx_hal_pwr.c... compiling stm32f1xx_hal_dma.c... compiling stm32f1xx_hal_rcc.c... compiling stm32f1xx_hal_uart.c... compiling stm32f1xx_hal_usart.c... compiling stm32f1xx_hal_gpio.c... ".\Objects\rt-thread.axf" - 2 Error(s), 143 Warning(s). Target not created. Build Time Elapsed: 00:00:04 ```
查看更多
4
个回答
默认排序
按发布时间排序
bernard
2024-03-02
这家伙很懒,什么也没写!
估计用的最新版本?github的版本改了些东西,大概导致都是警告
mydodo
2024-03-02
这家伙很懒,什么也没写!
我这也是这样,编译最后错误,中间提示很多这个警告。 ``` ..\..\..\include\rtdef.h(869): warning: #381-D: extra ";" ignored ```
Rb君
认证专家
2024-03-02
这家伙很懒,什么也没写!
env中输入`scons --target=mdk5`生成下工程试试
ccliushou2024
2024-03-11
这家伙很懒,什么也没写!
我也遇到同样的问题了。请问大家是如何解决的呢?
撰写答案
登录
注册新账号
关注者
0
被浏览
944
关于作者
至善123
这家伙很懒,什么也没写!
提问
2
回答
0
被采纳
0
关注TA
发私信
相关问题
1
ulog, cmbacktrace组件编译警告
2
编译时出现的一个警告问题
3
cjson软件包编译出现警告
4
模拟仿真警告sd.bin问题
5
未知报错,这个错误是什么意思?怎么形成的?
6
数据类型错误,有什么方法解决?
7
请教下incompatible pointer type警告是什么原因?
8
编译C++代码产生warning,编译脚本的CXXFLAG不生效
9
rt thread studio 编译有警告提示,语法没问题
10
github下载的master代码stm32下野火例程编译提示报错缺少backtrace.c文件
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
使用百度AI助手辅助编写一个rt-thread下的ONVIF设备发现功能的功能代码
2
RT-Thread 发布 EtherKit开源以太网硬件!
3
rt-thread使用cherryusb实现虚拟串口
4
《C++20 图形界面程序:速度与渲染效率的双重优化秘籍》
5
《原子操作:程序世界里的“最小魔法单位”解析》
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
WIZnet_W5500
ota在线升级
UART
PWM
cubemx
freemodbus
flash
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
Debug
编译报错
msh
SFUD
keil_MDK
rt_mq_消息队列_msg_queue
at_device
ulog
C++_cpp
本月问答贡献
踩姑娘的小蘑菇
7
个答案
3
次被采纳
张世争
8
个答案
2
次被采纳
rv666
5
个答案
2
次被采纳
用户名由3_15位
11
个答案
1
次被采纳
KunYi
6
个答案
1
次被采纳
本月文章贡献
程序员阿伟
5
篇文章
2
次点赞
hhart
3
篇文章
4
次点赞
大龄码农
1
篇文章
2
次点赞
ThinkCode
1
篇文章
1
次点赞
Betrayer
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部