Skip to content

Commit

Permalink
Fix missing declaration warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven-Roberts committed Jul 30, 2024
1 parent 6edb858 commit 0605d1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit_tests/sundials/test_sundials_errors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,21 +171,21 @@ class SUNContextErrFunctionTests : public testing::Test
SUNContext sunctx;
};

void firstHandler(int line, const char* func, const char* file, const char* msg,
static void firstHandler(int line, const char* func, const char* file, const char* msg,
SUNErrCode err_code, void* err_user_data, SUNContext sunctx)
{
std::vector<int>* order = static_cast<std::vector<int>*>(err_user_data);
order->push_back(0);
}

void secondHandler(int line, const char* func, const char* file, const char* msg,
static void secondHandler(int line, const char* func, const char* file, const char* msg,
SUNErrCode err_code, void* err_user_data, SUNContext sunctx)
{
std::vector<int>* order = static_cast<std::vector<int>*>(err_user_data);
order->push_back(1);
}

void thirdHandler(int line, const char* func, const char* file, const char* msg,
static void thirdHandler(int line, const char* func, const char* file, const char* msg,
SUNErrCode err_code, void* err_user_data, SUNContext sunctx)
{
std::vector<int>* order = static_cast<std::vector<int>*>(err_user_data);
Expand Down

0 comments on commit 0605d1e

Please sign in to comment.