Skip to content

Fix 14851#8663

Open
danmar wants to merge 2 commits into
cppcheck-opensource:mainfrom
cppchecksolutions:fix-14851
Open

Fix 14851#8663
danmar wants to merge 2 commits into
cppcheck-opensource:mainfrom
cppchecksolutions:fix-14851

Conversation

@danmar

@danmar danmar commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread lib/settings.h

Settings(Settings&&) noexcept;
Settings& operator=(Settings&&) noexcept;
Settings(Settings&&) CPPCHECK_NOEXCEPT;
Comment thread lib/settings.h
Settings(Settings&&) noexcept;
Settings& operator=(Settings&&) noexcept;
Settings(Settings&&) CPPCHECK_NOEXCEPT;
Settings& operator=(Settings&&) CPPCHECK_NOEXCEPT;
Comment thread lib/settings.h
Settings(Settings&&) noexcept;
Settings& operator=(Settings&&) noexcept;
Settings(Settings&&) CPPCHECK_NOEXCEPT;
Settings& operator=(Settings&&) CPPCHECK_NOEXCEPT;

strategy:
matrix:
image: ["gcc:6.5", "gcc:7.5", "gcc:8.5", "gcc:9.5"]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These images are way too big (500+ MB) to be used in the CI.

I would also prefer an actual distro as there are several other moving parts in those which might cause issues (mainly CMake).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And it should be sufficient to test the minimum support version.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would also prefer an actual distro as there are several other moving parts in those which might cause issues (mainly CMake).

And the limitations of GitHub runners which will no longer allow us to run certain distro versions. We should probably apply the same we do for Python - specify the oldest what we can reasonable use in the CI as the actual minimum - even if it might be EOL/EOS.

- image: "alpine:3.23"
with_gui: false # it appears FindQt6.cmake is not provided by any package
full_build: false # FIXME: test-signalhandler.cpp fails to build since feenableexcept() is missing
- image: "oraclelinux:8"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use oraclelinux:8-slim for a smaller base image.

strategy:
matrix:
image: ["ubuntu:24.04", "ubuntu:25.10", "alpine:3.23"]
image: ["ubuntu:24.04", "ubuntu:25.10", "alpine:3.23", "oraclelinux:8"]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use oraclelinux:8-slim for a smaller base image.

Comment thread lib/checks.h
/** List of registered check classes. This is used by Cppcheck to run checks and generate documentation */
CPPCHECKLIB const std::list<Check *>& get();
};
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am curious why we did not see this warning in the CI before.

Comment thread lib/settings.h
Comment on lines +98 to +102
// Hack to workaround GCC bug.
// Details: https://trac.cppcheck.net/ticket/14850
// seen on:
// oraclelinux:8, g++-8.5
// ubuntu:20.04, g++-9.4.0

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment can be adjusted to g++ before 10.x as it is not distribution bound.

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