vesoft-inc / nebula

A distributed, fast open-source graph database featuring horizontal scalability and high availability
https://nebula-graph.io
Apache License 2.0
10.83k stars 1.2k forks source link

chore: make nebula compilable with gcc13 #5843

Closed ClSlaid closed 7 months ago

ClSlaid commented 7 months ago

What type of PR is this?

What problem(s) does this PR solve?

Issue(s) number:

Description:

Make nebula compilable with gcc-13.2.1 on my Arch Linux

$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --enable-languages=ada,c,c++,d,fortran,go,lto,m2,objc,obj-c++ --enable-bootstrap --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://b
ugs.archlinux.org/ --with-build-config=bootstrap-lto --with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit --enable-cet=auto --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-fu
nction --enable-gnu-unique-object --enable-libstdcxx-backtrace --enable-link-serialization=1 --enable-linker-build-id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable
-werror
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.2.1 20230801 (GCC) 

How do you solve it?

Added missing headers.

Special notes for your reviewer, ex. impact of this fix, design document, etc:

Checklist:

Tests:

Affects:

Release notes:

Please confirm whether to be reflected in release notes and how to describe:

ex. Fixed the bug .....

CLAassistant commented 7 months ago

CLA assistant check
All committers have signed the CLA.