Skip to content

Commit

Permalink
Merge pull request #291 from espressif/bugfix/catch2_build_failure
Browse files Browse the repository at this point in the history
fix(catch2): fix missing structure initializer warning
  • Loading branch information
tore-espressif authored Jan 10, 2024
2 parents 22e2825 + 9280cbe commit a5a8f17
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
11 changes: 4 additions & 7 deletions catch2/cmd_catch2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,10 @@ static int cmd_catch2(int argc, char **argv)

extern "C" esp_err_t register_catch2(const char *cmd_name)
{
const esp_console_cmd_t cmd = {
.command = cmd_name,
.help = "Run tests",
.hint = NULL,
.func = &cmd_catch2,
.argtable = NULL
};
esp_console_cmd_t cmd = {};
cmd.command = cmd_name,
cmd.help = "Run tests";
cmd.func = &cmd_catch2;
return esp_console_cmd_register(&cmd);
}

Expand Down
1 change: 1 addition & 0 deletions catch2/examples/catch2-console/sdkconfig.defaults
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
CONFIG_COMPILER_CXX_EXCEPTIONS=y
CONFIG_ESP_CONSOLE_SECONDARY_NONE=y
2 changes: 1 addition & 1 deletion catch2/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3.4.0~3"
version: "3.4.0~4"
description: A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later
url: https://github.com/espressif/idf-extra-components/tree/master/catch2
repository: https://github.com/espressif/idf-extra-components.git
Expand Down

0 comments on commit a5a8f17

Please sign in to comment.