Skip to content

Commit

Permalink
APITests: Store string literals in const char* to fix GCC warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stertingen authored and xR3b0rn committed May 18, 2024
1 parent e5a1937 commit 816abbf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/APITests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ using namespace dbcppp;

TEST_CASE("API Test: AttributeDefinition", "[]")
{
constexpr char* test_dbc =
constexpr const char* test_dbc =
"VERSION \"\"\n"
"NS_ :\n"
"BS_:\n"
Expand Down Expand Up @@ -44,7 +44,7 @@ TEST_CASE("API Test: AttributeDefinition", "[]")
}
TEST_CASE("API Test: BitTiming", "[]")
{
constexpr char* test_dbc =
constexpr const char* test_dbc =
"VERSION \"\"\n"
"NS_ :\n"
"BS_: 1 : 2, 3\n"
Expand Down Expand Up @@ -74,7 +74,7 @@ TEST_CASE("API Test: BitTiming", "[]")
}
TEST_CASE("API Test: EnvironmentVariable", "[]")
{
constexpr char* test_dbc =
constexpr const char* test_dbc =
"VERSION \"\"\n"
"NS_ :\n"
"BS_:\n"
Expand Down Expand Up @@ -122,7 +122,7 @@ TEST_CASE("API Test: EnvironmentVariable", "[]")
}
TEST_CASE("API Test: Signal", "[]")
{
constexpr char* test_dbc =
constexpr const char* test_dbc =
"VERSION \"\"\n"
"NS_ :\n"
"BS_: 1 : 2, 3\n"
Expand Down Expand Up @@ -211,7 +211,7 @@ TEST_CASE("API Test: Signal", "[]")
}
TEST_CASE("API Test: Message", "[]")
{
constexpr char* test_dbc =
constexpr const char* test_dbc =
"VERSION \"\"\n"
"NS_ :\n"
"BS_: 1 : 2, 3\n"
Expand Down

0 comments on commit 816abbf

Please sign in to comment.