add preprocessor to hide unused functions
authorBeny Luo <benyluo@fb.com>
Mon, 23 Feb 2015 15:12:29 +0000 (07:12 -0800)
committerAlecs King <int@fb.com>
Tue, 3 Mar 2015 03:28:27 +0000 (19:28 -0800)
commit832c3155276738e038fbaef30d140c56d8e6c919
treeee2c81080e4a22377c51ea4fe19d06698adce495
parent5f2d43af2cd1c51ddef0ee3cf90bad2e5d2bb769
add preprocessor to hide unused functions

Summary:
encodeVarintToIOBuf and decodeVarintFromCursor are not used when
FOLLY_HAVE_LIBLZMA and FOLLY_HAVE_LIBLZ4 are false, which will trigger
-Werror,-Wunused-function on compile on mobile.

Test Plan: unit test

Reviewed By: seanc@fb.com

Subscribers: meisner, trunkagent, seanc, folly-diffs@, yfeldblum

FB internal diff: D1864016

Signature: t1:1864016:1424702813:75535ea92ac16385ce5c272d93bba507ccbb67a1
folly/io/Compression.cpp