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

emitterutils: Explicitly include <cstdint> #1310

Merged
merged 1 commit into from
Aug 18, 2024

Commits on Aug 15, 2024

  1. emitterutils: Explicitly include <cstdint>

    GCC 15 will no longer include it by default, resulting in build
    failures in projects that do not explicitly include it.
    
    Error:
    src/emitterutils.cpp:221:11: error: 'uint16_t' was not declared in this scope
      221 | std::pair<uint16_t, uint16_t> EncodeUTF16SurrogatePair(int codePoint) {
          |           ^~~~~~~~
    src/emitterutils.cpp:13:1: note: 'uint16_t' is defined in header '<cstdint>';
    this is probably fixable by adding '#include <cstdint>'
       12 | #include "yaml-cpp/null.h"
      +++ |+#include <cstdint>
       13 | #include "yaml-cpp/ostream_wrapper.h"
    
    Tests pass.
    
    Closes: jbeder#1307
    See-also: https://gcc.gnu.org/pipermail/gcc-cvs/2024-August/407124.html
    See-also: https://bugs.gentoo.org/937412
    Signed-off-by: Christopher Fore <[email protected]>
    csfore committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    0bcee98 View commit details
    Browse the repository at this point in the history