Skip to content

Commit

Permalink
🧹 gucc: remove unused argument in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vnepogodin committed Jul 4, 2024
1 parent 828bd8b commit 60c052e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gucc/tests/unit-crypttab_gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ luks-6bdb3301-8efb-4b84-b0b7-4caeef26fd6f UUID=6bdb3301-8efb-4b84-b0b7-4caeef26f
)"sv;

int main() {

Check failure on line 34 in gucc/tests/unit-crypttab_gen.cpp

View workflow job for this annotation

GitHub Actions / cpp-linter

/gucc/tests/unit-crypttab_gen.cpp:34:5 [modernize-use-trailing-return-type

use a trailing return type for this function
auto callback_sink = std::make_shared<spdlog::sinks::callback_sink_mt>([](const spdlog::details::log_msg& msg) {
auto callback_sink = std::make_shared<spdlog::sinks::callback_sink_mt>([](const spdlog::details::log_msg&) {
// noop
});
spdlog::set_default_logger(std::make_shared<spdlog::logger>("default", callback_sink));
Expand Down
2 changes: 1 addition & 1 deletion gucc/tests/unit-fstab_gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ UUID=8EFB-4B84 /boot vfat defaults,noatim
)"sv;

int main() {

Check failure on line 84 in gucc/tests/unit-fstab_gen.cpp

View workflow job for this annotation

GitHub Actions / cpp-linter

/gucc/tests/unit-fstab_gen.cpp:84:5 [modernize-use-trailing-return-type

use a trailing return type for this function
auto callback_sink = std::make_shared<spdlog::sinks::callback_sink_mt>([](const spdlog::details::log_msg& msg) {
auto callback_sink = std::make_shared<spdlog::sinks::callback_sink_mt>([](const spdlog::details::log_msg&) {
// noop
});
spdlog::set_default_logger(std::make_shared<spdlog::logger>("default", callback_sink));
Expand Down
2 changes: 1 addition & 1 deletion gucc/tests/unit-grub_config_gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ inline auto filtered_res(std::string_view content) noexcept -> std::string {
}

int main() {

Check failure on line 136 in gucc/tests/unit-grub_config_gen.cpp

View workflow job for this annotation

GitHub Actions / cpp-linter

/gucc/tests/unit-grub_config_gen.cpp:136:5 [bugprone-exception-escape

an exception may be thrown in function 'main' which should not throw exceptions

Check failure on line 136 in gucc/tests/unit-grub_config_gen.cpp

View workflow job for this annotation

GitHub Actions / cpp-linter

/gucc/tests/unit-grub_config_gen.cpp:136:5 [modernize-use-trailing-return-type

use a trailing return type for this function
auto callback_sink = std::make_shared<spdlog::sinks::callback_sink_mt>([](const spdlog::details::log_msg& msg) {
auto callback_sink = std::make_shared<spdlog::sinks::callback_sink_mt>([](const spdlog::details::log_msg&) {
// noop
});
spdlog::set_default_logger(std::make_shared<spdlog::logger>("default", callback_sink));
Expand Down

0 comments on commit 60c052e

Please sign in to comment.