diff options
author | David Meikle <david@meikle.io> | 2021-11-22 15:22:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-22 15:22:06 +0300 |
commit | 3b4e943cda232062e7e28f496bfed724f3f20333 (patch) | |
tree | a39c27f4b4e54882888d6a44dd031209f0d1b50d | |
parent | 2bdfbd3f02fb7e85b865efdfc93a8ebaa99a7c74 (diff) |
Added pragma to ignore unused-private-field error on elementType_ which failed in macOS (#872)
Co-authored-by: Roman Grundkiewicz <rgrundkiewicz@gmail.com>
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | src/tensors/cpu/fbgemm/expanded_gemm.h | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index e0b85314..169a1a5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Integrate a shortlist converter (which can convert a text lexical shortlist to a binary shortlist) into marian-conv with --shortlist option ### Fixed +- Added pragma to ignore unused-private-field error on elementType_ on macOS - Do not set guided alignments for case augmented data if vocab is not factored - Various fixes to enable LSH in Quicksand - Added support to MPIWrappest::bcast (and similar) for count of type size_t diff --git a/src/tensors/cpu/fbgemm/expanded_gemm.h b/src/tensors/cpu/fbgemm/expanded_gemm.h index 2c376d6e..cca18725 100644 --- a/src/tensors/cpu/fbgemm/expanded_gemm.h +++ b/src/tensors/cpu/fbgemm/expanded_gemm.h @@ -292,8 +292,19 @@ private: size_t k_; bool transA_; bool transB_; + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-private-field" +#endif + Type elementType_; +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif + + public: FbgemmPacked8AffineNodeOp(Type elementType, const std::vector<Expr>& nodes, |