diff options
author | Ola Liljedahl <ola.liljedahl@linaro.org> | 2015-03-23 21:56:26 +0100 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-03-25 17:37:16 +0300 |
commit | 2a9794106a29b6f7c5bfabe58cb9853f0a238bff (patch) | |
tree | 4c92871b8ca8139fcca869bc958a6e910f72af74 /doc | |
parent | e6ddf873024e247349189b765a0a265df3d0c5ec (diff) |
linux-generic: strongtypes: use named structs for C++
Typedefs to anonymous structs creates problems for C++ programs:
GCC:
warning: ‘odp_crypto_op_params’ has a field ‘odp_crypto_op_params::pkt’
whose type uses the anonymous namespace
error: anonymous type with no linkage used to declare function
‘<anonymous struct>* ppp_packet::get_queue() const’ with linkage
CLANG:
extern odp_pool_t tmo_pool;
warning: variable 'tmo_pool' has internal linkage but is not defined
When linking:
undefined reference to `tmo_pool'
The solution is to add a (unique) name to all structs used by the strong
typing typedefs.
Signed-off-by: Ola Liljedahl <ola.liljedahl@linaro.org>
Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/doxygen.cfg | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/doxygen.cfg b/doc/doxygen.cfg index 2d45a76e0..52c83a9af 100644 --- a/doc/doxygen.cfg +++ b/doc/doxygen.cfg @@ -38,5 +38,6 @@ PREDEFINED = __GNUC__ \ __BIG_ENDIAN_BITFIELD \ __LITTLE_ENDIAN_BITFIELD \ __x86_64__ \ - ODP_PACKED + ODP_PACKED \ + "ODP_HANDLE_T(type)=odp_handle_t type" INTERNAL_DOCS = YES |