plugins: Avoid unsupported empty structs 59/22059/5
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Tue, 28 Mar 2017 08:23:26 +0000 (10:23 +0200)
committerPhil Coval <philippe.coval@osg.samsung.com>
Wed, 11 Oct 2017 07:17:21 +0000 (07:17 +0000)
commit9b078e6aaf14f28230d97262b7b14145cdc552ac
tree93fba8a076f0bc8bf6771e41e9ececc1a3e1c88f
parente624be85d563f84897a1423ae9074c6a0135cf20
plugins: Avoid unsupported empty structs

Observed issue on clang-3.5:
  plugins/include/plugintypes.h:52:9: \
  error: empty struct has size 0 in C, size 1 in C++ [-Werror,-Wextern-c-compat]

It might help MSC compiler too

Change-Id: Ib7cea3d37001ba1256478c1895972d519353feb2
Credit-to: Pawel Winogrodzki <pawelwi@microsoft.com>
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/18251
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
(cherry picked from commit 9a779130a2e3c7fe21f981646efe6beaaf7ed9f5)
plugins/include/plugininterface.h
plugins/include/plugintypes.h
plugins/samples/linux/IotivityandZigbeeServer.c
plugins/src/plugininterface.c