@@ -83,8 +83,8 @@ TEST_CASE("DeviceHistogram::HistogramRange works with default environment", "[hi
8383
8484TEST_CASE (" DeviceHistogram::MultiHistogramEven works with default environment" , " [histogram][device]" )
8585{
86- constexpr int NUM_CHANNELS = 4 ;
87- constexpr int NUM_ACTIVE_CHANNELS = 3 ;
86+ [[maybe_unused]] constexpr int NUM_CHANNELS = 4 ;
87+ [[maybe_unused]] constexpr int NUM_ACTIVE_CHANNELS = 3 ;
8888
8989 // 2 pixels: (R=0, G=2, B=1, A=255), (R=3, G=4, B=2, A=128)
9090 auto d_samples = c2h::device_vector<unsigned char >{0 , 2 , 1 , 255 , 3 , 4 , 2 , 128 };
@@ -117,8 +117,8 @@ TEST_CASE("DeviceHistogram::MultiHistogramEven works with default environment",
117117
118118TEST_CASE (" DeviceHistogram::MultiHistogramRange works with default environment" , " [histogram][device]" )
119119{
120- constexpr int NUM_CHANNELS = 4 ;
121- constexpr int NUM_ACTIVE_CHANNELS = 3 ;
120+ [[maybe_unused]] constexpr int NUM_CHANNELS = 4 ;
121+ [[maybe_unused]] constexpr int NUM_ACTIVE_CHANNELS = 3 ;
122122
123123 // 2 pixels: (R=0, G=2, B=1, A=255), (R=3, G=4, B=2, A=128)
124124 auto d_samples = c2h::device_vector<unsigned char >{0 , 2 , 1 , 255 , 3 , 4 , 2 , 128 };
@@ -318,8 +318,8 @@ TEST_CASE("DeviceHistogram::HistogramRange uses custom stream", "[histogram][dev
318318
319319C2H_TEST (" DeviceHistogram::MultiHistogramEven uses environment" , " [histogram][device]" )
320320{
321- constexpr int NUM_CHANNELS = 4 ;
322- constexpr int NUM_ACTIVE_CHANNELS = 3 ;
321+ [[maybe_unused]] constexpr int NUM_CHANNELS = 4 ;
322+ [[maybe_unused]] constexpr int NUM_ACTIVE_CHANNELS = 3 ;
323323
324324 auto d_samples = c2h::device_vector<unsigned char >{0 , 2 , 1 , 255 , 3 , 4 , 2 , 128 };
325325 int num_pixels = 2 ;
@@ -365,8 +365,8 @@ C2H_TEST("DeviceHistogram::MultiHistogramEven uses environment", "[histogram][de
365365
366366TEST_CASE (" DeviceHistogram::MultiHistogramEven uses custom stream" , " [histogram][device]" )
367367{
368- constexpr int NUM_CHANNELS = 4 ;
369- constexpr int NUM_ACTIVE_CHANNELS = 3 ;
368+ [[maybe_unused]] constexpr int NUM_CHANNELS = 4 ;
369+ [[maybe_unused]] constexpr int NUM_ACTIVE_CHANNELS = 3 ;
370370
371371 auto d_samples = c2h::device_vector<unsigned char >{0 , 2 , 1 , 255 , 3 , 4 , 2 , 128 };
372372 int num_pixels = 2 ;
@@ -420,8 +420,8 @@ TEST_CASE("DeviceHistogram::MultiHistogramEven uses custom stream", "[histogram]
420420
421421C2H_TEST (" DeviceHistogram::MultiHistogramRange uses environment" , " [histogram][device]" )
422422{
423- constexpr int NUM_CHANNELS = 4 ;
424- constexpr int NUM_ACTIVE_CHANNELS = 3 ;
423+ [[maybe_unused]] constexpr int NUM_CHANNELS = 4 ;
424+ [[maybe_unused]] constexpr int NUM_ACTIVE_CHANNELS = 3 ;
425425
426426 auto d_samples = c2h::device_vector<unsigned char >{0 , 2 , 1 , 255 , 3 , 4 , 2 , 128 };
427427 int num_pixels = 2 ;
@@ -473,8 +473,8 @@ C2H_TEST("DeviceHistogram::MultiHistogramRange uses environment", "[histogram][d
473473
474474TEST_CASE (" DeviceHistogram::MultiHistogramRange uses custom stream" , " [histogram][device]" )
475475{
476- constexpr int NUM_CHANNELS = 4 ;
477- constexpr int NUM_ACTIVE_CHANNELS = 3 ;
476+ [[maybe_unused]] constexpr int NUM_CHANNELS = 4 ;
477+ [[maybe_unused]] constexpr int NUM_ACTIVE_CHANNELS = 3 ;
478478
479479 auto d_samples = c2h::device_vector<unsigned char >{0 , 2 , 1 , 255 , 3 , 4 , 2 , 128 };
480480 int num_pixels = 2 ;
0 commit comments