@@ -120,7 +120,7 @@ std::enable_if_t<std::is_same<T, bfloat16>::value, T> fabs(T x) {
120120#if defined(__SYCL_DEVICE_ONLY__) && defined(__NVPTX__)
121121 return bfloat16::from_bits (__clc_fabs (x.raw ()));
122122#else
123- ( void ) x;
123+ std::ignore = x;
124124 throw runtime_error (" bfloat16 is not currently supported on the host device." ,
125125 PI_INVALID_DEVICE);
126126#endif // defined(__SYCL_DEVICE_ONLY__) && defined(__NVPTX__)
@@ -141,7 +141,7 @@ sycl::marray<bfloat16, N> fabs(sycl::marray<bfloat16, N> x) {
141141 }
142142 return res;
143143#else
144- ( void ) x;
144+ std::ignore = x;
145145 throw runtime_error (" bfloat16 is not currently supported on the host device." ,
146146 PI_INVALID_DEVICE);
147147#endif // defined(__SYCL_DEVICE_ONLY__) && defined(__NVPTX__)
@@ -152,7 +152,7 @@ std::enable_if_t<std::is_same<T, bfloat16>::value, T> fmin(T x, T y) {
152152#if defined(__SYCL_DEVICE_ONLY__) && defined(__NVPTX__)
153153 return bfloat16::from_bits (__clc_fmin (x.raw (), y.raw ()));
154154#else
155- ( void ) x;
155+ std::ignore = x;
156156 (void )y;
157157 throw runtime_error (" bfloat16 is not currently supported on the host device." ,
158158 PI_INVALID_DEVICE);
@@ -178,7 +178,7 @@ sycl::marray<bfloat16, N> fmin(sycl::marray<bfloat16, N> x,
178178
179179 return res;
180180#else
181- ( void ) x;
181+ std::ignore = x;
182182 (void )y;
183183 throw runtime_error (" bfloat16 is not currently supported on the host device." ,
184184 PI_INVALID_DEVICE);
@@ -190,7 +190,7 @@ std::enable_if_t<std::is_same<T, bfloat16>::value, T> fmax(T x, T y) {
190190#if defined(__SYCL_DEVICE_ONLY__) && defined(__NVPTX__)
191191 return bfloat16::from_bits (__clc_fmax (x.raw (), y.raw ()));
192192#else
193- ( void ) x;
193+ std::ignore = x;
194194 (void )y;
195195 throw runtime_error (" bfloat16 is not currently supported on the host device." ,
196196 PI_INVALID_DEVICE);
@@ -215,7 +215,7 @@ sycl::marray<bfloat16, N> fmax(sycl::marray<bfloat16, N> x,
215215 }
216216 return res;
217217#else
218- ( void ) x;
218+ std::ignore = x;
219219 (void )y;
220220 throw runtime_error (" bfloat16 is not currently supported on the host device." ,
221221 PI_INVALID_DEVICE);
@@ -227,7 +227,7 @@ std::enable_if_t<std::is_same<T, bfloat16>::value, T> fma(T x, T y, T z) {
227227#if defined(__SYCL_DEVICE_ONLY__) && defined(__NVPTX__)
228228 return bfloat16::from_bits (__clc_fma (x.raw (), y.raw (), z.raw ()));
229229#else
230- ( void ) x;
230+ std::ignore = x;
231231 (void )y;
232232 (void )z;
233233 throw runtime_error (" bfloat16 is not currently supported on the host device." ,
@@ -255,7 +255,7 @@ sycl::marray<bfloat16, N> fma(sycl::marray<bfloat16, N> x,
255255 }
256256 return res;
257257#else
258- ( void ) x;
258+ std::ignore = x;
259259 (void )y;
260260 throw runtime_error (" bfloat16 is not currently supported on the host device." ,
261261 PI_INVALID_DEVICE);
0 commit comments