Skip to content
Open
1 change: 0 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Checks: >
-cppcoreguidelines-no-malloc,
-cppcoreguidelines-non-private-member-variables-in-classes,
-cppcoreguidelines-owning-memory,
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-cppcoreguidelines-pro-type-const-cast,
-cppcoreguidelines-pro-type-member-init,
Expand Down
2 changes: 1 addition & 1 deletion src/breadthFirstSearch/binaryBreadthFirstSearch_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ pgr_do_binaryBreadthFirstSearch(
std::ostringstream err;
std::ostringstream notice;
const char *hint = nullptr;
const char c_err_msg[] = "Graph Condition Failed: Graph should have at most two distinct non-negative edge costs! "
const std::string c_err_msg = "Graph Condition Failed: Graph should have at most two distinct non-negative edge costs! "
"If there are exactly two distinct edge costs, one of them must equal zero!";

try {
Expand Down
4 changes: 2 additions & 2 deletions src/common/assert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ std::string get_backtrace() {
void *trace[16];
int i = 0, trace_size = 0;

trace_size = backtrace(trace, 16);
char** funcNames = backtrace_symbols(trace, trace_size);
trace_size = backtrace(static_cast<void**>(trace), 16);
char** funcNames = backtrace_symbols(static_cast<void**>(trace), trace_size);


std::string message = "\n*** Execution path***\n";
Expand Down