Skip to content

easy_lock: silence portability-no-assembler with clang-tidy 23.1.0+ - #22751

Closed
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:easylockasm
Closed

vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:easylockasm

Conversation

@vszakats

Copy link
Copy Markdown
Member
lib/easy_lock.h:74:7: warning: do not use inline assembler in safety-critical code [portability-no-assembler]
   74 |       __asm__ volatile("yield" ::: "memory");
      |       ^

```
lib/easy_lock.h:74:7: warning: do not use inline assembler in safety-critical code [portability-no-assembler]
   74 |       __asm__ volatile("yield" ::: "memory");
      |       ^
```

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Pull request overview

Adds a targeted clang-tidy suppression for intentional AArch64 inline assembly.

Changes:

  • Suppresses portability-no-assembler for the yield instruction.
File summaries
File Description
lib/easy_lock.h Adds the targeted NOLINTNEXTLINE comment.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@vszakats vszakats closed this in 5898851 Aug 30, 2026
@vszakats
vszakats deleted the easylockasm branch August 30, 2026 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants