Commit 4a45caa3 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Fix folly/hash/detail/Crc32CombineDetail.cpp with -Werror=attributes

Summary: [Folly] Fix `folly/hash/detail/Crc32CombineDetail.cpp` with `-Werror=attributes`.

Reviewed By: tehnerd

Differential Revision: D9507179

fbshipit-source-id: 67ce235a5e1555973a276de2b4009acab2329ddc
parent 7e9667fa
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include <array> #include <array>
#include <folly/Bits.h> #include <folly/Bits.h>
#include <folly/CPortability.h>
#include <folly/ConstexprMath.h> #include <folly/ConstexprMath.h>
namespace folly { namespace folly {
...@@ -62,8 +61,7 @@ struct gf_powers_memo<0, m> { ...@@ -62,8 +61,7 @@ struct gf_powers_memo<0, m> {
template <uint32_t m> template <uint32_t m>
struct gf_powers_make { struct gf_powers_make {
template <size_t... i> template <size_t... i>
FOLLY_ALWAYS_INLINE FOLLY_ATTR_VISIBILITY_HIDDEN constexpr auto operator()( constexpr auto operator()(index_sequence<i...>) const {
index_sequence<i...>) const {
return std::array<uint32_t, sizeof...(i)>{{gf_powers_memo<i, m>::value...}}; return std::array<uint32_t, sizeof...(i)>{{gf_powers_memo<i, m>::value...}};
} }
}; };
......
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