Skip to content

Commit 8970edf

Browse files
committed
fixup! [libc][math] Optimize nearest integer functions using builtins when available
Fix GCC warning "variable ‘result’ set but not used".
1 parent 3fccb21 commit 8970edf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/test/src/math/performance_testing/nearest_integer_funcs_perf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ template <typename T> class NearestIntegerPerf {
4242
StorageType ending_bit, StorageType step,
4343
size_t rounds, std::ofstream &log) {
4444
auto runner = [=](Func func) {
45-
volatile T result;
45+
[[maybe_unused]] volatile T result;
4646
for (size_t i = 0; i < rounds; i++) {
4747
for (StorageType bits = starting_bit; bits <= ending_bit;
4848
bits += step) {

0 commit comments

Comments
 (0)