LLVM Discussion Forums
[[maybe-unused]] vs __attribute__((unused)) vs (void) var for assert variables
LLVM Project
mehdi_amini
May 25, 2023, 5:49pm
30
Consistency of the codebase matters a lot to me.
Coding standard: Deprecate use of void cast to suppress unused variable warnings?
show post in topic
Related topics
Topic
Replies
Views
Activity
Coding standard: Deprecate use of void cast to suppress unused variable warnings?
LLVM Project
36
985
June 25, 2025
Top-level .clang-tidy options and VariableName suggestion on CodingStandards
LLVM Dev List Archives
9
682
December 22, 2022
Llvm_unreachable is widely misused
LLVM Project
24
5048
March 29, 2022
[RFC] __builtin_assume, [[assume]] optimization behavior
Clang Frontend
llvm
51
1833
March 11, 2024
RFC: variable names
LLVM Dev List Archives
54
499
January 19, 2015