From: Marcelo Juchem Date: Tue, 6 Nov 2012 01:32:28 +0000 (-0800) Subject: Clang complains about errors in folly String-inl.h and FBString.h (P1825995) X-Git-Tag: v0.22.0~1152 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a8370f0272e565be339e275eb8852ccd602cd1fb;p=folly.git Clang complains about errors in folly String-inl.h and FBString.h (P1825995) Summary: fixing clang errors (used clang 3.1) Test Plan: doh Reviewed By: tudorb@fb.com FB internal diff: D622593 --- diff --git a/folly/FBString.h b/folly/FBString.h index 7da9a306..ef58b16c 100644 --- a/folly/FBString.h +++ b/folly/FBString.h @@ -1269,7 +1269,7 @@ public: // std::less_equal, which is guaranteed to offer a total order // over pointers. See discussion at http://goo.gl/Cy2ya for more // info. - static const std::less_equal le; + std::less_equal le; if (UNLIKELY(le(oldData, s) && !le(oldData + oldSize, s))) { assert(le(s + n, oldData + oldSize)); const size_type offset = s - oldData; diff --git a/folly/String-inl.h b/folly/String-inl.h index 4bff753e..4270ab08 100644 --- a/folly/String-inl.h +++ b/folly/String-inl.h @@ -278,7 +278,7 @@ template void split(const Delim& delimiter, const String& input, fbvector& out, - bool ignoreEmpty = false) { + bool ignoreEmpty) { detail::internalSplit( detail::prepareDelim(delimiter), StringPiece(input), @@ -451,7 +451,7 @@ void humanify(const String1& input, String2& output) { template bool hexlify(const InputString& input, OutputString& output, - bool append_output=false) { + bool append_output) { if (!append_output) output.clear(); static char hexValues[] = "0123456789abcdef";