Skip to content

Commit c3d478a

Browse files
committed
Fix build error with -DTRITON_ENABLE_METRICS=OFF
1 parent 349daa6 commit c3d478a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/tritonserver.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3386,7 +3386,7 @@ TRITONSERVER_MetricArgsNew(TRITONSERVER_MetricArgs** args)
33863386
*args = reinterpret_cast<TRITONSERVER_MetricArgs*>(largs);
33873387
return nullptr; // Success
33883388
#else
3389-
*metrics = nullptr;
3389+
*args = nullptr;
33903390
return TRITONSERVER_ErrorNew(
33913391
TRITONSERVER_ERROR_UNSUPPORTED, "metrics not supported");
33923392
#endif // TRITON_ENABLE_METRICS
@@ -3402,7 +3402,6 @@ TRITONSERVER_MetricArgsSetHistogram(
34023402
largs->SetHistogramArgs(buckets, buckets_count);
34033403
return nullptr; // Success
34043404
#else
3405-
*metrics = nullptr;
34063405
return TRITONSERVER_ErrorNew(
34073406
TRITONSERVER_ERROR_UNSUPPORTED, "metrics not supported");
34083407
#endif // TRITON_ENABLE_METRICS

0 commit comments

Comments
 (0)