From 130fe7482f7546d5c20524f782cbaa208240f511 Mon Sep 17 00:00:00 2001 From: Ozaq Date: Fri, 12 Jul 2019 00:00:44 +0200 Subject: [PATCH] Fix clang 8 build Building::AddTrainType was calling void OutputHandler::Write(const char* message,...) with a non-trivial type std::string. See clang doc for this diagnstic: https://releases.llvm.org/8.0.0/tools/clang/docs/DiagnosticsReference.html#wnon-pod-varargs --- geometry/Building.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/geometry/Building.cpp b/geometry/Building.cpp index 0008a8b8..2b6f8771 100644 --- a/geometry/Building.cpp +++ b/geometry/Building.cpp @@ -1275,13 +1275,10 @@ bool Building::AddGoal(Goal* goal) return true; } -bool Building:: - - -AddTrainType(std::shared_ptr TT) +bool Building::AddTrainType(std::shared_ptr TT) { if (_trainTypes.count(TT->type)!=0) { - Log->Write("WARNING: Duplicate type for train found [%s]",TT->type); + Log->Write("WARNING: Duplicate type for train found [%s]",TT->type.c_str()); } _trainTypes[TT->type] = TT; return true; -- GitLab