Skip to content

Fix return values for gr_write methods#2652

Merged
fredrik-johansson merged 1 commit into
flintlib:mainfrom
fredrik-johansson:gr_write
Apr 29, 2026
Merged

Fix return values for gr_write methods#2652
fredrik-johansson merged 1 commit into
flintlib:mainfrom
fredrik-johansson:gr_write

Conversation

@fredrik-johansson
Copy link
Copy Markdown
Collaborator

Fix return values for gr_write and gr_ctx_write methods.

  • Some gr_ctx_write implementations were incorrectly declared void instead of int. This caused tests to fail on some platforms, e.g. gr_nmod_redc fails on ppc64el #2651.
  • Many gr_write and gr_ctx_write implementations always returned GR_SUCCESS regardless of the status of the inner writes. This has been fixed, and the helper functions gr_stream_write etc. have been marked WARN_UNUSED_RESULT.

Copy link
Copy Markdown
Contributor

@d-torrance d-torrance left a comment

Choose a reason for hiding this comment

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

The tests run succesfully on the Debian ppc64el porterbox after checking out this commit!

@fredrik-johansson fredrik-johansson merged commit 741b017 into flintlib:main Apr 29, 2026
13 checks passed
@fredrik-johansson fredrik-johansson deleted the gr_write branch April 29, 2026 15:52
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