Skip to content

Commit

Permalink
Fix a warning. (#2334)
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Schweitz <[email protected]>
  • Loading branch information
schweitzpgi authored Nov 7, 2024
1 parent 6a9ee6d commit 90754d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runtime/common/KernelWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -520,9 +520,9 @@ std::invoke_result_t<QuantumKernel, Args...> invokeKernel(QuantumKernel &&fn,
// Just need to JIT code to get it registered.
static_cast<cudaq::details::kernel_builder_base &>(fn).jitCode();
auto serializedArgsBuffer = serializeArgs(std::forward<Args>(args)...);
cudaq::get_platform().launchKernel(fn.name(), nullptr,
(void *)serializedArgsBuffer.data(),
serializedArgsBuffer.size(), 0, {});
[[maybe_unused]] auto result = cudaq::get_platform().launchKernel(
fn.name(), nullptr, (void *)serializedArgsBuffer.data(),
serializedArgsBuffer.size(), 0, {});
} else {
// In library mode, to use the remote simulator platform, we need to pack
// the argument and delegate to the platform's launchKernel rather than
Expand Down

0 comments on commit 90754d9

Please sign in to comment.