https://bugs.linaro.org/show_bug.cgi?id=1267

            Bug ID: 1267
           Summary: clang++: warning: empty struct has size 0 in C, size 1
                    in C++
           Product: OpenDataPlane
           Version: 0.11
          Hardware: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: ---
         Component: General ODP API or linux-generic implimentation
          Assignee: [email protected]
          Reporter: [email protected]

make CXX=clang++

....
.....
make[2]: Entering directory '/home/mike/git/odp/test/miscellaneous'
  CXX      odp_api_from_cpp-odp_api_from_cpp.o
In file included from odp_api_from_cpp.cpp:2:
In file included from ../../include/odp.h:32:
In file included from ../../platform/linux-generic/include/odp/barrier.h:21:
../../platform/linux-generic/include/odp/plat/shared_memory_types.h:29:9:
warning: empty struct has size 0 in C, size 1 in C++
      [-Wextern-c-compat]
typedef odp_handle_t odp_shm_t;
        ^
../../platform/linux-generic/include/odp/plat/strong_types.h:19:22: note:
expanded from macro 'odp_handle_t'
#define odp_handle_t struct {} *
                     ^
In file included from odp_api_from_cpp.cpp:2:
In file included from ../../include/odp.h:35:
In file included from ../../platform/linux-generic/include/odp/init.h:28:
../../include/odp/api/init.h:121:9: warning: empty struct has size 0 in C, size
1 in C++ [-Wextern-c-compat]
typedef struct odp_platform_init_t {
        ^
In file included from odp_api_from_cpp.cpp:2:
In file included from ../../include/odp.h:39:
In file included from ../../platform/linux-generic/include/odp/buffer.h:21:
../../platform/linux-generic/include/odp/plat/event_types.h:29:9: warning:
empty struct has size 0 in C, size 1 in C++
      [-Wextern-c-compat]
typedef odp_handle_t odp_event_t;
        ^
../../platform/linux-generic/include/odp/plat/strong_types.h:19:22: note:
expanded from macro 'odp_handle_t'
#define odp_handle_t struct {} *
                     ^
In file included from odp_api_from_cpp.cpp:2:
In file included from ../../include/odp.h:39:
In file included from ../../platform/linux-generic/include/odp/buffer.h:22:
../../platform/linux-generic/include/odp/plat/buffer_types.h:29:9: warning:
empty struct has size 0 in C, size 1 in C++
      [-Wextern-c-compat]
typedef odp_handle_t odp_buffer_t;
        ^
../../platform/linux-generic/include/odp/plat/strong_types.h:19:22: note:
expanded from macro 'odp_handle_t'
#define odp_handle_t struct {} *
                     ^
In file included from odp_api_from_cpp.cpp:2:
In file included from ../../include/odp.h:39:
In file included from ../../platform/linux-generic/include/odp/buffer.h:22:
../../platform/linux-generic/include/odp/plat/buffer_types.h:35:9: warning:
empty struct has size 0 in C, size 1 in C++
      [-Wextern-c-compat]
typedef odp_handle_t odp_buffer_seg_t;
        ^
../../platform/linux-generic/include/odp/plat/strong_types.h:19:22: note:
expanded from macro 'odp_handle_t'
#define odp_handle_t struct {} *
                     ^
In file included from odp_api_from_cpp.cpp:2:
In file included from ../../include/odp.h:39:
In file included from ../../platform/linux-generic/include/odp/buffer.h:23:
../../platform/linux-generic/include/odp/plat/pool_types.h:28:9: warning: empty
struct has size 0 in C, size 1 in C++
      [-Wextern-c-compat]
typedef odp_handle_t odp_pool_t;
        ^
../../platform/linux-generic/include/odp/plat/strong_types.h:19:22: note:
expanded from macro 'odp_handle_t'
#define odp_handle_t struct {} *
                     ^
In file included from odp_api_from_cpp.cpp:2:
In file included from ../../include/odp.h:41:
In file included from ../../platform/linux-generic/include/odp/queue.h:22:
../../platform/linux-generic/include/odp/plat/queue_types.h:28:9: warning:
empty struct has size 0 in C, size 1 in C++
      [-Wextern-c-compat]
typedef odp_handle_t odp_queue_t;
        ^
../../platform/linux-generic/include/odp/plat/strong_types.h:19:22: note:
expanded from macro 'odp_handle_t'
#define odp_handle_t struct {} *
                     ^
In file included from odp_api_from_cpp.cpp:2:
In file included from ../../include/odp.h:41:
In file included from ../../platform/linux-generic/include/odp/queue.h:22:
../../platform/linux-generic/include/odp/plat/queue_types.h:30:9: warning:
empty struct has size 0 in C, size 1 in C++
      [-Wextern-c-compat]
typedef odp_handle_t odp_queue_group_t;
        ^
../../platform/linux-generic/include/odp/plat/strong_types.h:19:22: note:
expanded from macro 'odp_handle_t'
#define odp_handle_t struct {} *
                     ^
In file included from odp_api_from_cpp.cpp:2:
In file included from ../../include/odp.h:47:
In file included from ../../platform/linux-generic/include/odp/packet.h:22:
../../platform/linux-generic/include/odp/plat/packet_io_types.h:29:9: warning:
empty struct has size 0 in C, size 1 in C++
      [-Wextern-c-compat]
typedef odp_handle_t odp_pktio_t;
        ^
../../platform/linux-generic/include/odp/plat/strong_types.h:19:22: note:
expanded from macro 'odp_handle_t'
#define odp_handle_t struct {} *
                     ^
In file included from odp_api_from_cpp.cpp:2:
In file included from ../../include/odp.h:47:
In file included from ../../platform/linux-generic/include/odp/packet.h:23:
../../platform/linux-generic/include/odp/plat/packet_types.h:29:9: warning:
empty struct has size 0 in C, size 1 in C++
      [-Wextern-c-compat]
typedef odp_handle_t odp_packet_t;
        ^
../../platform/linux-generic/include/odp/plat/strong_types.h:19:22: note:
expanded from macro 'odp_handle_t'
#define odp_handle_t struct {} *
                     ^
In file included from odp_api_from_cpp.cpp:2:
In file included from ../../include/odp.h:47:
In file included from ../../platform/linux-generic/include/odp/packet.h:23:
../../platform/linux-generic/include/odp/plat/packet_types.h:35:9: warning:
empty struct has size 0 in C, size 1 in C++
      [-Wextern-c-compat]
typedef odp_handle_t odp_packet_seg_t;
        ^
../../platform/linux-generic/include/odp/plat/strong_types.h:19:22: note:
expanded from macro 'odp_handle_t'
#define odp_handle_t struct {} *
                     ^
In file included from odp_api_from_cpp.cpp:2:
In file included from ../../include/odp.h:49:
In file included from ../../platform/linux-generic/include/odp/packet_io.h:22:
../../platform/linux-generic/include/odp/plat/classification_types.h:26:9:
warning: empty struct has size 0 in C, size 1 in
      C++ [-Wextern-c-compat]
typedef odp_handle_t odp_cos_t;
        ^
../../platform/linux-generic/include/odp/plat/strong_types.h:19:22: note:
expanded from macro 'odp_handle_t'
#define odp_handle_t struct {} *
                     ^
In file included from odp_api_from_cpp.cpp:2:
In file included from ../../include/odp.h:49:
In file included from ../../platform/linux-generic/include/odp/packet_io.h:22:
../../platform/linux-generic/include/odp/plat/classification_types.h:27:9:
warning: empty struct has size 0 in C, size 1 in
      C++ [-Wextern-c-compat]
typedef odp_handle_t odp_flowsig_t;
        ^
../../platform/linux-generic/include/odp/plat/strong_types.h:19:22: note:
expanded from macro 'odp_handle_t'
#define odp_handle_t struct {} *
                     ^
In file included from odp_api_from_cpp.cpp:2:
In file included from ../../include/odp.h:49:
In file included from ../../platform/linux-generic/include/odp/packet_io.h:22:
../../platform/linux-generic/include/odp/plat/classification_types.h:34:9:
warning: empty struct has size 0 in C, size 1 in
      C++ [-Wextern-c-compat]
typedef odp_handle_t odp_pmr_t;
        ^
../../platform/linux-generic/include/odp/plat/strong_types.h:19:22: note:
expanded from macro 'odp_handle_t'
#define odp_handle_t struct {} *
                     ^
In file included from odp_api_from_cpp.cpp:2:
In file included from ../../include/odp.h:49:
In file included from ../../platform/linux-generic/include/odp/packet_io.h:22:
../../platform/linux-generic/include/odp/plat/classification_types.h:37:9:
warning: empty struct has size 0 in C, size 1 in
      C++ [-Wextern-c-compat]
typedef odp_handle_t odp_pmr_set_t;
        ^
../../platform/linux-generic/include/odp/plat/strong_types.h:19:22: note:
expanded from macro 'odp_handle_t'
#define odp_handle_t struct {} *
                     ^
In file included from odp_api_from_cpp.cpp:2:
In file included from ../../include/odp.h:50:
In file included from ../../platform/linux-generic/include/odp/crypto.h:22:
../../platform/linux-generic/include/odp/plat/crypto_types.h:28:9: warning:
empty struct has size 0 in C, size 1 in C++
      [-Wextern-c-compat]
typedef odp_handle_t odp_crypto_compl_t;
        ^
../../platform/linux-generic/include/odp/plat/strong_types.h:19:22: note:
expanded from macro 'odp_handle_t'
#define odp_handle_t struct {} *
                     ^
16 warnings generated.
  CXXLD    odp_api_from_cpp

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to