Skip to content

Commit 4a82a6d

Browse files
committed
silence unused var warning on ifdef
1 parent f86011f commit 4a82a6d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/viam/sdk/rpc/dial.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ ViamChannel ViamChannel::dial_direct(const char* uri, const DialOptions& opts) {
174174
auto creds = grpc::experimental::TlsCredentials(c_opts);
175175
return ViamChannel(sdk::impl::create_viam_grpc_channel(uri, creds));
176176
#else
177+
(void)uri;
178+
(void)opts;
177179
throw std::logic_error("Tried to call dial_direct on unsupported grpc version " +
178180
grpc::Version());
179181
#endif

0 commit comments

Comments
 (0)