Skip to content

Commit

Permalink
fix unused warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeSiFive committed Jul 27, 2023
1 parent f5ebab8 commit cf63963
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/json/json5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ void JsonSubscriber::receive(const wcl::log::Event &e) {
std::string line = ss.str();

if (line.size() > 4095) {
write(to_append.get(), warning_msg.data(), warning_msg.size());
(void)write(to_append.get(), warning_msg.data(), warning_msg.size());
}
write(to_append.get(), line.data(), line.size());
(void)write(to_append.get(), line.data(), line.size());
}
2 changes: 1 addition & 1 deletion tools/wake-unit/filepath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ TEST(filepath_dir_range_basic) {

auto touch_sym = [&](std::string entry) {
std::string path = "test_dir/" + entry;
symlink("touch", path.c_str());
(void)symlink("touch", path.c_str());
expected_type[entry] = wcl::file_type::symlink;
};

Expand Down

0 comments on commit cf63963

Please sign in to comment.