Skip to content

Commit 0fe0369

Browse files
author
Herbert Koelman
committed
fixed minor sonar issues.
1 parent 3b8f156 commit 0fe0369

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

include/pthread/exceptions.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ namespace pthread {
9999
* @param pthread_errno error returned by the pthread function
100100
*/
101101
condition_variable_exception( const std::string &message, const int pthread_errno = -1);
102-
virtual ~condition_variable_exception(){};
102+
virtual ~condition_variable_exception(){
103+
// Intentionally unimplemented...
104+
};
103105
};
104106

105107
/** thrown to indicate that something went wrong with a thread */

include/pthread/sync_queue.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ namespace pthread {
220220
}
221221

222222
template<typename T> sync_queue<T>::~sync_queue(){
223+
// Intentionally unimplemented...
223224
}
224225

225226
}; // namespace util

include/pthread/thread.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ namespace pthread {
6868
virtual void run () noexcept = 0 ;
6969
#endif
7070

71-
virtual ~runnable() {};
71+
virtual ~runnable() {
72+
// Intentionally unimplemented...
73+
};
7274
};
7375

7476
/**

src/exceptions.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ namespace pthread {
1616
};
1717

1818
pthread_exception::~pthread_exception(){
19+
// Intentionally unimplemented...
1920
};
2021

2122
#if __cplusplus < 201103L

0 commit comments

Comments
 (0)