Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unit_test/data.h: include missing <stdint.h> for uint16_t (gcc-13 fix) #18

Merged
merged 1 commit into from
Aug 23, 2023
Merged

unit_test/data.h: include missing <stdint.h> for uint16_t (gcc-13 fix) #18

merged 1 commit into from
Aug 23, 2023

Conversation

trofi
Copy link
Contributor

@trofi trofi commented Aug 20, 2023

Without the change build fails on gcc-13 as:

/build/source/unit_test/data.h:37:9: error: 'uint16_t' does not name a type
   37 |         uint16_t i;
      |         ^~~~~~~~
/build/source/unit_test/data.h:33:1: note: 'uint16_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
   32 | #include <string.h>
  +++ |+#include <cstdint>

Without the change build fails on gcc-13 as:

    /build/source/unit_test/data.h:37:9: error: 'uint16_t' does not name a type
       37 |         uint16_t i;
          |         ^~~~~~~~
    /build/source/unit_test/data.h:33:1: note: 'uint16_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
       32 | #include <string.h>
      +++ |+#include <cstdint>
@loqs
Copy link

loqs commented Aug 20, 2023

Fixes #17.

@f4exb f4exb merged commit 6f4a518 into f4exb:master Aug 23, 2023
@trofi trofi deleted the gcc-13-fix branch August 23, 2023 13:12
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.

3 participants