Skip to content

Use __LINE__ rather than __COUNTER__#138

Closed
searlmc1 wants to merge 1 commit intoamd-mainlinefrom
msearles/fix-wc2y-extensions-warning
Closed

Use __LINE__ rather than __COUNTER__#138
searlmc1 wants to merge 1 commit intoamd-mainlinefrom
msearles/fix-wc2y-extensions-warning

Conversation

@searlmc1
Copy link

@searlmc1 searlmc1 commented Jan 14, 2026

Newer LLVM compilers warn that __COUNTER__ is a C2y extension ( -Wc2y-extensions ). See llvm/llvm-project#162662 . The fix is to use __LINE__ instead.

Newer LLVM compilers warn that __COUNTER__ is a C2y extension
( -Wc2y-extensions ). See llvm/llvm-project#162662 .
The fix is to use __LINE__ instead.
@searlmc1 searlmc1 requested a review from oliveiradan as a code owner January 14, 2026 23:45
@ronlieb ronlieb self-requested a review January 14, 2026 23:46
@searlmc1
Copy link
Author

Closing the PR - this will be fixed via an internal PR , which will then make it's way external / to this branch .

@searlmc1 searlmc1 closed this Jan 15, 2026
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

Successfully merging this pull request may close these issues.

1 participant