Skip to content

Staging/2023 r2/fix discarded qualifiers#555

Merged
nunojsa merged 2 commits into2023_R2from
staging/2023_R2/fix-discarded-qualifiers
Feb 24, 2026
Merged

Staging/2023 r2/fix discarded qualifiers#555
nunojsa merged 2 commits into2023_R2from
staging/2023_R2/fix-discarded-qualifiers

Conversation

@nunojsa
Copy link
Contributor

@nunojsa nunojsa commented Feb 23, 2026

PR Description

I was not being able to compile the 2023_R2 on arch due to discarded-qualifiers warnings. This series fixes those warnings.

PR Type

  • Bug fix (a change that fixes an issue)
  • New feature (a change that adds new functionality)
  • Breaking change (a change that affects other repos or cause CIs to fail)

PR Checklist

  • I have followed the coding standards and guidelines
  • I have conducted a self-review of my own code changes
  • I have commented new code, particulary complex or unclear areas
  • I have checked in CI output that no new warnings/errors got introduced
  • I have updated documentation accordingly (GitHub Pages, READMEs, etc)

Make sure to not discard const and so mark the proper strings as they
should be. To do that, don't use the same pointer on a different path
where we need to g_strndup() and g_free(). Just use a local variable for
that path.

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Make sure to not discard const. Hence, qualify char* as const.

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Copy link
Contributor

@dNechita dNechita left a comment

Choose a reason for hiding this comment

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

Looks good!

@nunojsa nunojsa merged commit fd8cbd3 into 2023_R2 Feb 24, 2026
5 of 13 checks passed
@nunojsa nunojsa deleted the staging/2023_R2/fix-discarded-qualifiers branch February 24, 2026 10:04
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