Skip to content

GHA: Use Ubuntu 26.04 to avoid Launchpad dependency and add GCC 15 - #2023

Open
Flamefire wants to merge 8 commits into
masterfrom
gcc-15
Open

Flamefire wants to merge 8 commits into
masterfrom
gcc-15

Conversation

@Flamefire

Copy link
Copy Markdown
Member

GCC 15 seems to have a few false positives, so add to CI

Not using the test-PPA avoids potential failures by network flukes

@Flamefire
Flamefire requested a review from Flow86 November 19, 2026 15:04
See error:
> error: 'DoNotOptimize<bool>' is deprecated: The const-ref version of this method can permit undesired compiler optimizations in benchmarks
It detects a theoretical UB in Boost.Test
In the loop it wrongly shows:
> error: writing 16 bytes into a region of size 15 [-Werror=stringop-overflow=]
Also works around a `Wformat-truncation` in GCC 15
Closes #2022
const auto s = std::chrono::duration_cast<std::chrono::seconds>(time % std::chrono::minutes(1));
snprintf(buf, sizeof(buf), "%03ld:%02ld:%02ld", static_cast<long>(h.count()), static_cast<long>(m.count()),
static_cast<long>(s.count()));
const int ct = snprintf(buf, sizeof(buf), "%03ld:%02ld:%02ld", static_cast<long>(h.count()),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

maybe we should use the platform independed PRI... (e.g PRIu64) suffixes from cinttypes instead? we could remove the static_cast's then

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

std::chrono::hours etc has no defined underlying type. E.g. for hours it just says "at least 23 bits". So we need the casts anyway

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.

2 participants