Skip to content

Commit

Permalink
added some nolint statements
Browse files Browse the repository at this point in the history
  • Loading branch information
WideAwakeTN committed Jan 5, 2023
1 parent 02bb3db commit c2ce0fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/rcutils/thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ rcutils_ret_t calculate_os_fifo_thread_priority(
*/
RCUTILS_PUBLIC
rcutils_ret_t configure_native_realtime_thread(
unsigned long int native_handle, const int priority,
unsigned long int native_handle, const int priority, // NOLINT
const unsigned int cpu_bitmask);

#ifdef __cplusplus
Expand Down
2 changes: 1 addition & 1 deletion src/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ rcutils_ret_t calculate_os_fifo_thread_priority(
}

rcutils_ret_t configure_native_realtime_thread(
unsigned long int native_handle, const int priority,
unsigned long int native_handle, const int priority, // NOLINT
const unsigned int cpu_bitmask)
{
int success = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/test_thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
TEST(test_thread, config_rt_thread) {
#ifdef __linux__
const unsigned cpu_id = 0;
const unsigned long cpu_bitmask = 1 << cpu_id;
const unsigned long cpu_bitmask = 1 << cpu_id; // NOLINT
const int priority = THREAD_PRIORITY_MEDIUM;
if (configure_native_realtime_thread(pthread_self(), priority, cpu_bitmask) != RCUTILS_RET_OK) {
GTEST_SKIP() << "Unable to set realtime thread priority.";
Expand Down

0 comments on commit c2ce0fd

Please sign in to comment.