-
-
Notifications
You must be signed in to change notification settings - Fork 243
Fix codechecker warnings #8650
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Fix codechecker warnings #8650
Conversation
src/common/IntlParametersBlock.h
Outdated
}; | ||
|
||
class IntlSpb : public IntlParametersBlock | ||
{ | ||
public: | ||
TagType checkTag(UCHAR tag, const char** tagName); | ||
UCHAR getUtf8Tag(); | ||
|
||
~IntlSpb() override = default; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The destructors with override = default
should not be needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And it really is. I checked and realized that they are optional. The main thing is to have a virtual destructor in the base class. I will fix this code soon. Thanks for the review.
@@ -181,7 +181,7 @@ Thread Thread::start(ThreadEntryPoint* routine, void* arg, int priority_arg, Han | |||
{ | |||
#ifdef HAVE_PTHREAD_CANCEL | |||
int dummy; // We do not want to know old cancel type | |||
state = pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, &dummy); | |||
state = pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, &dummy); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about this @AlexPeshkoff ?
Correction of some warnings of the static analyzer clang-tidy and clangsa.