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

src/StringFunctions.h: add missing <cstdint> header #183

Merged
merged 1 commit into from
Dec 6, 2022
Merged

src/StringFunctions.h: add missing <cstdint> header #183

merged 1 commit into from
Dec 6, 2022

Conversation

trofi
Copy link
Contributor

@trofi trofi commented Dec 6, 2022

Without the change build fails on weekly gcc-13 as:

In file included from src/StructureNode.cpp:32:
src/StringFunctions.h:56:34:
  error: 'uint8_t' was not declared in this scope
   56 |    inline std::string hexString( uint8_t x )
      |                                  ^~~~~~~
src/StringFunctions.h:32:1:
  note: 'uint8_t' is defined in header '<cstdint>';
    did you forget to '#include <cstdint>'?
   31 | #include <iostream>
  +++ |+#include <cstdint>
   32 | #include <sstream>

Without the change build fails on weekly `gcc-13` as:

    In file included from src/StructureNode.cpp:32:
    src/StringFunctions.h:56:34:
      error: 'uint8_t' was not declared in this scope
       56 |    inline std::string hexString( uint8_t x )
          |                                  ^~~~~~~
    src/StringFunctions.h:32:1:
      note: 'uint8_t' is defined in header '<cstdint>';
        did you forget to '#include <cstdint>'?
       31 | #include <iostream>
      +++ |+#include <cstdint>
       32 | #include <sstream>
@asmaloney asmaloney merged commit ddbb352 into asmaloney:master Dec 6, 2022
@asmaloney
Copy link
Owner

Thanks Sergei!

@trofi trofi deleted the gcc-13-fix branch December 6, 2022 22:03
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