Skip to content

Update for g2cio.c and test#589

Merged
edwardhartnett merged 6 commits intoNOAA-EMC:developfrom
EricEngle-NOAA:develop
Mar 12, 2025
Merged

Update for g2cio.c and test#589
edwardhartnett merged 6 commits intoNOAA-EMC:developfrom
EricEngle-NOAA:develop

Conversation

@EricEngle-NOAA
Copy link
Copy Markdown
Contributor

In g2c_file_io(), define chat *bvar as signed char. The generic char on majority of platforms is signed, except ARM Linux where it is unsigned.

Updated test for 1-byte ints to add a fourth read/write and test special condition where the value read will not equal what is written that mimics Arm Linux.

In g2c_file_io(), define chat *bvar as signed char. The generic
char on majority of platforms is signed, except ARM Linux where it
is unsigned.

Updated test for 1-byte ints to add a fourth read/write and test
special condition where the value read will not equal what is
written that mimics Arm Linux.
Return last arg to char.
For GCC, adding "-Wno-error=pointer-sign" to allow that behavior.
@EricEngle-NOAA
Copy link
Copy Markdown
Contributor Author

@edhartnett After closing #583, I have this new PR. IMO, the added logic to tst_io.c is sufficient for what you requested.
To make this work, I needed to add -Wno-error=pointer-sign compiler flag for tst_io.c

@edwardhartnett edwardhartnett merged commit 01a1378 into NOAA-EMC:develop Mar 12, 2025
38 checks passed
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