Commit 56c80f8e authored by Gabriel Russo's avatar Gabriel Russo Committed by Facebook Github Bot

Suppress unnecessary packing warnings

Reviewed By: yfeldblum

Differential Revision: D19331966

fbshipit-source-id: ad369c51eb1253faf293fc37457d2c8122e3d227
parent 339d51d3
......@@ -317,6 +317,8 @@ struct Unaligned;
/**
* Representation of an unaligned value of a POD type.
*/
FOLLY_PUSH_WARNING
FOLLY_CLANG_DISABLE_WARNING("-Wpacked")
FOLLY_PACK_PUSH
template <class T>
struct Unaligned<T, typename std::enable_if<std::is_pod<T>::value>::type> {
......@@ -325,6 +327,7 @@ struct Unaligned<T, typename std::enable_if<std::is_pod<T>::value>::type> {
T value;
} FOLLY_PACK_ATTR;
FOLLY_PACK_POP
FOLLY_POP_WARNING
/**
* Read an unaligned value of type T and return it.
......
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