[NFC][OpenMP][Offloading] Fix compilation warning caused by misuse of `static_cast`
authorShilei Tian <i@tianshilei.me>
Sat, 9 Jul 2022 00:59:37 +0000 (20:59 -0400)
committerShilei Tian <i@tianshilei.me>
Sat, 9 Jul 2022 00:59:37 +0000 (20:59 -0400)
openmp/libomptarget/include/omptarget.h

index f472b86..381fb40 100644 (file)
@@ -121,7 +121,7 @@ struct __tgt_kernel_arguments {
   void **ArgMappers;  // User-defined mappers, possibly null.
   int64_t Tripcount;  // Tripcount for the teams / distribute loop, 0 otherwise.
 };
-static_assert(sizeof(__tgt_kernel_arguments) == 64 && "Invalid struct size");
+static_assert(sizeof(__tgt_kernel_arguments) == 64, "Invalid struct size");
 
 /// This struct is a record of an entry point or global. For a function
 /// entry point the size is expected to be zero