RT-Thread / RT-Thread/rt-thread

[Bug] IAR 编译错误 (rt_list_for_each_entry 使用了 IAR 8.x不支持的关键字 __typeof )

Open
#11,441 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
12.2k
Forks
5.4k
Avg merge
4d 12h
Merged PRs (30d)
40

Description

RT-Thread Version

master

Hardware Type/Architectures

ARM contex-M4

Develop Toolchain

IAR

Describe the bug

1、IAR 编译任意使用了 rt_list_for_each_entry 的文件,会产生编译错误,并有提示信息 Warning[Pe223]: function "__typeof" declared implicitly
2、IAR 版本 8.x

Other additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the codebase for the rt_list_for_each_entry macro and inspect its definition and related list helpers. Reproduce the issue by compiling a file that uses the macro with IAR 8.x; done means the affected code compiles without the __typeof warning or error.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.