wangle: make new pragma use portable to older clang
authorJim Meyering <meyering@fb.com>
Sat, 14 Feb 2015 00:37:37 +0000 (16:37 -0800)
committerAlecs King <int@fb.com>
Tue, 3 Mar 2015 03:20:56 +0000 (19:20 -0800)
commit2b4d1dea72dda8611716b987b60038fe34460a86
tree4462abf668a1f17095b72ecd0baf6534f3d809fe
parentcb2d6c84271625f02f00df178688113d2ea1e336
wangle: make new pragma use portable to older clang

Summary:
* folly/wangle/channel/test/MockChannelHandler.h:
Avoiding a new warning that rendered this file uncompilable
by clang-3.5 and older.  Add cpp conditionals to protect
against that.

Test Plan:
Ensure it works with clang-3.4, 3.5 and clang:dev.
I.e., ensure that this prints PASS at the end.

for i in '' 3.5 dev; do
test -n "$i" && i=--with-project-version=clang:$i
fbconfig -r --clang $i folly/wangle/channel/test && fbmake runtests_dbgo
done && echo PASS

Reviewed By: meyering@fb.com

Subscribers: mpawlowski, fugalh, mathieubaudet, folly-diffs@, jsedgwick, yfeldblum

FB internal diff: D1849474

Tasks: 6244745

Blame Revision: D1848330
@build-break
folly/wangle/channel/test/MockChannelHandler.h