Skip to content
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

Bumped cppcheck version to 2.5 #1938

Merged
merged 1 commit into from
Jul 14, 2021
Merged

Conversation

matt335672
Copy link
Member

Small change to bump cppcheck to version 2.5

A small change is also needed to tcutils/utils.h to prevent these warnings:-

utils.cpp:25:5: error: Uninitialized struct member: s.pos [uninitStructMember]
    qstream_new(s, 1024 * 8);
    ^
utils.cpp:25:5: error: Uninitialized struct member: s.size [uninitStructMember]
    qstream_new(s, 1024 * 8);
    ^
utils.cpp:111:5: error: Uninitialized struct member: s.pos [uninitStructMember]
    qstream_new(s, 1024);
    ^
utils.cpp:111:5: error: Uninitialized struct member: s.size [uninitStructMember]
    qstream_new(s, 1024);
    ^

I've managed to verify that the change I've made to tcutils will build on older systems - it doesn't build with our current CI.

The tcutils stuff is based on Qt4 and hence defunct. It's in C++, but doesn't make particularly good use of that language.

Ideally we'd update this utility for Qt5 compatibility, and also improve the C++ usage. I'm personally not that keen on learning all about Qt5 to do this however, given that this utility seems to be more of an example than anything useful.

We seem to have three choices here:-

  • Leave this PR as is, and ignore tcutils for now on the grounds it may be useful later.
  • Update tcutils to Qt5 (and presumably maintain it)
  • Remove the utility entirely.

Thoughts?

@aquesnel
Copy link
Contributor

I'm for removing utilities that don't work and we don't plan to make work.

@matt335672
Copy link
Member Author

Thanks for that - it's a sensible thing to do I think.

Anyone else?

@metalefty
Copy link
Member

I agree with @aquesnel. LTGM regarding other part.

@matt335672 matt335672 merged commit 2ed54a8 into neutrinolabs:devel Jul 14, 2021
@matt335672 matt335672 mentioned this pull request Jul 14, 2021
@matt335672 matt335672 deleted the cppcheck_25 branch September 9, 2021 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants