Skip to content

Conversation

@fmahebert
Copy link
Contributor

Fixes some compiler warnings raised by IntelLLVM 2025.3

  • use of comma operator revealed an IncSet[a, b] evaluating to IncSet[b], but that should likely have been written as IncSet(a, b) — this one could have correctness implications!
  • override warnings

Copy link
Collaborator

@shlyaeva shlyaeva left a comment

Choose a reason for hiding this comment

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

Thank you @fmahebert !

@shlyaeva shlyaeva requested a review from svahl991 January 23, 2026 20:13
Copy link
Contributor

@svahl991 svahl991 left a comment

Choose a reason for hiding this comment

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

Thanks!

oops::Log::info() << "updating ice state " << ensMember << ":" << ens[iens] << std::endl;
for (size_t itime = 0; itime < ens.local_time_size(); ++itime) {
ens(itime, iens) += incs[itime, iens];
ens(itime, iens) += incs(itime, iens);
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice catch! I was unaware of the comma operator and had to go educate myself on it. Talk about functionality that seems ideal for creating difficult bugs!

@shlyaeva shlyaeva merged commit fdf94f2 into develop Jan 24, 2026
3 checks passed
@shlyaeva shlyaeva deleted the feature/fix_warnings branch January 24, 2026 00:26
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.

4 participants