Skip to content

MDEV-40596 clang-23 reports unused global variables - #5483

Open
dr-m wants to merge 1 commit into
10.11from
MDEV-40596
Open

MDEV-40596 clang-23 reports unused global variables#5483
dr-m wants to merge 1 commit into
10.11from
MDEV-40596

Conversation

@dr-m

@dr-m dr-m commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Let us remove a number of unused variables to suppress -Wunused-but-set-global and other warnings.

test_thread(): Instead of incrementing a global counter in a race condition prone fashion, invoke MY_RELAX_CPU() in order to spend some time.

@dr-m
dr-m requested a review from Thirunarayanan August 3, 2026 09:35
@dr-m dr-m self-assigned this Aug 3, 2026
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Let us remove a number of unused variables to suppress
-Wunused-but-set-global and other warnings.

test_thread(): Instead of incrementing a global counter in a race
condition prone fashion, invoke MY_RELAX_CPU() in order to spend some time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants