Skip to content

Commit 316e44b

Browse files
committed
fix unused warnings
test=develop
1 parent 579d758 commit 316e44b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

paddle/fluid/operators/jit/benchmark.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "paddle/fluid/platform/device_tracer.h"
2323
#include "paddle/fluid/platform/place.h"
2424
#include "paddle/fluid/platform/port.h"
25+
#include "paddle/fluid/platform/variant.h" // for UNUSED
2526

2627
DEFINE_int32(burning, 10, "Burning times.");
2728
DEFINE_int32(repeat, 3000, "Repeat times.");
@@ -53,7 +54,7 @@ BenchJITKernel* InsertBenchmark(BenchJITKernel* b) {
5354
const char* Place() override { return #place; } \
5455
void Run() override; \
5556
}; \
56-
static auto inserted_##name##_##dtype##_##place##_ = \
57+
static auto inserted_##name##_##dtype##_##place##_ UNUSED = \
5758
InsertBenchmark(new BenchJITKernel_##name##_##dtype##_##place##_()); \
5859
void BenchJITKernel_##name##_##dtype##_##place##_::Run()
5960

0 commit comments

Comments
 (0)