From e28f64efd20a33199e35a1fb18d47e71a21e2dfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Fri, 17 Feb 2017 09:58:34 +0100 Subject: [PATCH] Fix compilation with clang 4 See https://www.securecoding.cert.org/confluence/display/cplusplus/EXP58-CPP.+Pass+an+object+of+the+correct+type+to+va_start for details --- AI/FuzzyLite/fuzzylite/src/Operation.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/AI/FuzzyLite/fuzzylite/src/Operation.cpp b/AI/FuzzyLite/fuzzylite/src/Operation.cpp index 728e49489..64b119e25 100644 --- a/AI/FuzzyLite/fuzzylite/src/Operation.cpp +++ b/AI/FuzzyLite/fuzzylite/src/Operation.cpp @@ -442,11 +442,9 @@ namespace fl { template FL_API std::string Operation::join(int items, const std::string& separator, int first, ...); - template FL_API std::string Operation::join(int items, const std::string& separator, - double first, ...); template <> FL_API std::string Operation::join(int items, const std::string& separator, - float first, ...) { + double first, ...) { std::ostringstream ss; ss << str(first); if (items > 1) ss << separator;