Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS GCC-10 WARNING -Winvalid-offsetof #944

Open
kuvaldini opened this issue Apr 8, 2021 · 0 comments
Open

MacOS GCC-10 WARNING -Winvalid-offsetof #944

kuvaldini opened this issue Apr 8, 2021 · 0 comments
Labels
1.2.x build iroha1 The legacy version of Iroha.

Comments

@kuvaldini
Copy link
Contributor

[306/743] Building CXX object shared_model/backend/protobuf/CMakeFiles/shared_model_proto_backend.dir/query_responses/impl/proto_engine_receipt.o
In file included from /usr/local/Cellar/gcc/10.2.0_4/include/c++/10.2.0/bits/cxxabi_init_exception.h:38,
                 from /usr/local/Cellar/gcc/10.2.0_4/include/c++/10.2.0/bits/exception_ptr.h:38,
                 from /usr/local/Cellar/gcc/10.2.0_4/include/c++/10.2.0/exception:147,
                 from /usr/local/Cellar/gcc/10.2.0_4/include/c++/10.2.0/new:41,
                 from /Users/tanya/devel/vcpkg-gcc/installed/x64-osx/include/boost/optional/optional.hpp:20,
                 from /Users/tanya/devel/vcpkg-gcc/installed/x64-osx/include/boost/optional.hpp:15,
                 from ../shared_model/interfaces/query_responses/engine_receipt.hpp:11,
                 from ../shared_model/backend/protobuf/query_responses/proto_engine_receipt.hpp:9,
                 from ../shared_model/backend/protobuf/query_responses/impl/proto_engine_receipt.cpp:6:
../shared_model/backend/protobuf/query_responses/impl/proto_engine_receipt.cpp: In constructor 'shared_model::proto::EngineReceipt::EngineReceipt(const TransportType&)':
../shared_model/backend/protobuf/query_responses/impl/proto_engine_receipt.cpp:36:26: warning: 'offsetof' within non-standard-layout type 'shared_model::proto::EngineReceipt' is conditionally-supported [-Winvalid-offsetof]
   36 |   static_assert(offsetof(EngineReceipt, response_data_)
      |                          ^
../shared_model/backend/protobuf/query_responses/impl/proto_engine_receipt.cpp:37:32: warning: 'offsetof' within non-standard-layout type 'shared_model::proto::EngineReceipt' is conditionally-supported [-Winvalid-offsetof]
   37 |                     < offsetof(EngineReceipt, call_result_),
      |                                ^
@kuvaldini kuvaldini changed the title MacOS GCC-10 WARNING offsetof MacOS GCC-10 WARNING -Winvalid-offsetof Apr 8, 2021
@nxsaken nxsaken added the iroha1 The legacy version of Iroha. label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.2.x build iroha1 The legacy version of Iroha.
Projects
None yet
Development

No branches or pull requests

2 participants