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

libhdt/src/util/StopWatch.cpp: add missing <cstdint> ionclude (`gcc-1… #276

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

trofi
Copy link

@trofi trofi commented Dec 25, 2023

…3` fix)

Without the change build on gcc-13 fails as:

src/util/StopWatch.cpp: In static member function 'static std::string StopWatch::toHuman(long long unsigned int)':
src/util/StopWatch.cpp:166:5: error: 'uint64_t' was not declared in this scope
  166 |     uint64_t tot_secs = time/1000000;
      |     ^~~~~~~~
src/util/StopWatch.cpp:36:1: note: 'uint64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
   35 | #include "StopWatch.hpp"
  +++ |+#include <cstdint>

…3` fix)

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

    src/util/StopWatch.cpp: In static member function 'static std::string StopWatch::toHuman(long long unsigned int)':
    src/util/StopWatch.cpp:166:5: error: 'uint64_t' was not declared in this scope
      166 |     uint64_t tot_secs = time/1000000;
          |     ^~~~~~~~
    src/util/StopWatch.cpp:36:1: note: 'uint64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
       35 | #include "StopWatch.hpp"
      +++ |+#include <cstdint>
@kamahen
Copy link

kamahen commented Dec 25, 2023

This fix is also in #275

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