From 12d5cb56e06c0849099c4424ce768dba8b675045 Mon Sep 17 00:00:00 2001 From: Kevin Huck Date: Wed, 22 Apr 2020 09:14:48 -0700 Subject: [PATCH] Cleaning up clang pedantic errors --- src/apex/utils.cpp | 2 ++ src/examples/DemoCpp/demo.cpp | 2 +- src/examples/TestReset/reset.cpp | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/apex/utils.cpp b/src/apex/utils.cpp index cd7c98c7..98fbc7b8 100644 --- a/src/apex/utils.cpp +++ b/src/apex/utils.cpp @@ -130,6 +130,8 @@ void set_thread_affinity(int core) { } } */ +#else + APEX_UNUSED(core); #endif return; } diff --git a/src/examples/DemoCpp/demo.cpp b/src/examples/DemoCpp/demo.cpp index 09e15860..f44baea7 100644 --- a/src/examples/DemoCpp/demo.cpp +++ b/src/examples/DemoCpp/demo.cpp @@ -98,7 +98,7 @@ int main (int argc, char** argv) { apex::apex_options::print_options(); apex::apex_options::use_screen_output(true); /* Start a timer for the main function, using its address (requires binutils) */ - apex::profiler* p = apex::start((apex_function_address)(main)); + apex::profiler* p = apex::start(__func__); /* Launch two threads */ pthread_t thread[2]; int tid = 0; diff --git a/src/examples/TestReset/reset.cpp b/src/examples/TestReset/reset.cpp index efbb91ad..ef79cf82 100644 --- a/src/examples/TestReset/reset.cpp +++ b/src/examples/TestReset/reset.cpp @@ -9,7 +9,7 @@ int main (int argc, char** argv) { APEX_UNUSED(argc); init(argv[0], 0, 1); cout << "APEX Version : " << version() << endl; - profiler * main_profiler = start((apex_function_address)(main)); + profiler * main_profiler = start(__func__); // Call "foo" 30 times for(int i = 0; i < 30; ++i) { profiler * p = start("foo");