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

Fix gcc-14 build #5025

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/ripple/app/rdb/impl/Download.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#include <ripple/app/rdb/Download.h>
#include <soci/sqlite3/soci-sqlite3.h>

#include <fstream>

namespace ripple {

std::pair<std::unique_ptr<DatabaseCon>, std::optional<std::uint64_t>>
Expand Down
6 changes: 4 additions & 2 deletions src/ripple/basics/impl/FileUtilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

#include <ripple/basics/FileUtilities.h>

#include <fstream>

namespace ripple {

std::string
Expand All @@ -41,7 +43,7 @@ getFileContents(
return {};
}

ifstream fileStream(fullPath, std::ios::in);
std::ifstream fileStream(fullPath, std::ios::in);

if (!fileStream)
{
Expand Down Expand Up @@ -71,7 +73,7 @@ writeFileContents(
using namespace boost::filesystem;
using namespace boost::system::errc;

ofstream fileStream(destPath, std::ios::out | std::ios::trunc);
std::ofstream fileStream(destPath, std::ios::out | std::ios::trunc);

if (!fileStream)
{
Expand Down
2 changes: 2 additions & 0 deletions src/ripple/net/impl/DatabaseBody.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

#include <ripple/app/rdb/Download.h>

#include <fstream>

namespace ripple {

inline void
Expand Down
2 changes: 2 additions & 0 deletions src/ripple/nodestore/impl/DatabaseShardImp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
#include <sys/statvfs.h>
#endif

#include <fstream>

namespace ripple {

namespace NodeStore {
Expand Down
3 changes: 3 additions & 0 deletions src/test/unit_test/FileDirGuard.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define TEST_UNIT_TEST_DIRGUARD_H

#include <ripple/basics/contract.h>

#include <boost/filesystem.hpp>
#include <test/jtx/TestSuite.h>

#include <fstream>

namespace ripple {
namespace test {
namespace detail {
Expand Down
Loading