Commit 5ab723e5 authored by Philip Pronin's avatar Philip Pronin Committed by Sara Golemon

make StringGen clang-compatible

Test Plan:
fbconfig -r folly/test && fbmake opt -j32

Reviewed By: tjackson@fb.com

FB internal diff: D935182
parent 257ff9ff
...@@ -222,6 +222,12 @@ class UnsplitBuffer : public Operator<UnsplitBuffer<Delimiter, OutputBuffer>> { ...@@ -222,6 +222,12 @@ class UnsplitBuffer : public Operator<UnsplitBuffer<Delimiter, OutputBuffer>> {
template<class Target, class=void> template<class Target, class=void>
inline Target passthrough(Target target) { return target; } inline Target passthrough(Target target) { return target; }
#pragma GCC diagnostic push
#ifdef __clang__
// Clang isn't happy with eatField() hack below.
#pragma GCC diagnostic ignored "-Wreturn-stack-address"
#endif // __clang__
/** /**
* ParseToTuple - For splitting a record and immediatlely converting it to a * ParseToTuple - For splitting a record and immediatlely converting it to a
* target tuple type. Primary used through the 'eachToTuple' helper, like so: * target tuple type. Primary used through the 'eachToTuple' helper, like so:
...@@ -257,6 +263,8 @@ class SplitTo { ...@@ -257,6 +263,8 @@ class SplitTo {
} }
}; };
#pragma GCC diagnostic pop
} // namespace detail } // namespace detail
} // namespace gen } // namespace gen
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment