Skip to content

Commit

Permalink
Cleaning up clang pedantic errors
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Apr 22, 2020
1 parent 77226b3 commit 12d5cb5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/apex/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ void set_thread_affinity(int core) {
}
}
*/
#else
APEX_UNUSED(core);
#endif
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/examples/DemoCpp/demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/examples/TestReset/reset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 12d5cb5

Please sign in to comment.