Skip to content

Commit

Permalink
Fix compile warning
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasy-peak committed May 15, 2024
1 parent e133e15 commit a7a53f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion out/bi_web/include/fantasy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ class HelloWorldServer final {
try {
using FrpcHeader =
std::tuple<uint64_t, HelloWorldClientHelloWorldServer>;
auto [req_id, req_type] =
[[maybe_unused]] auto [req_id, req_type] =
frpc::unpack<FrpcHeader>(recv_bufs[1].data(),
recv_bufs[1].size());
switch (req_type) {
Expand Down
2 changes: 1 addition & 1 deletion out/include/fantasy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ class HelloWorldServer final {
try {
using FrpcHeader =
std::tuple<uint64_t, HelloWorldClientHelloWorldServer>;
auto [req_id, req_type] =
[[maybe_unused]] auto [req_id, req_type] =
frpc::unpack<FrpcHeader>(recv_bufs[1].data(),
recv_bufs[1].size());
switch (req_type) {
Expand Down
2 changes: 1 addition & 1 deletion template/cpp/bi.inja
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ private:
}
try {
using FrpcHeader = std::tuple<uint64_t, {{value.caller}}{{value.callee}}>;
auto [req_id, req_type] = frpc::unpack<FrpcHeader>(recv_bufs[1].data(), recv_bufs[1].size());
[[maybe_unused]] auto [req_id, req_type] = frpc::unpack<FrpcHeader>(recv_bufs[1].data(), recv_bufs[1].size());
switch(req_type) {
{% for func in value.definitions %}
case {{value.caller}}{{value.callee}}::{{func.func_name}}: {
Expand Down

0 comments on commit a7a53f5

Please sign in to comment.