Commit 61667f7d authored by Philippe Coval's avatar Philippe Coval Committed by Greg Zaverucha

security: Add unused member to empty struct

For clang support just like MSVC

Change-Id: I2afbaae260318874634dd42d2650a87c0731e099
Signed-off-by: default avatarPhilippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/18331Tested-by: default avatarjenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: default avatarDan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: default avatarGreg Zaverucha <gregz@microsoft.com>
parent dba44fd8
......@@ -610,8 +610,8 @@ struct OicSecSacl
{
// <Attribute ID>:<Read/Write>:<Multiple/Single>:<Mandatory?>:<Type>
//TODO fill in from OIC Security Spec
#if defined(_MSC_VER)
uint8_t unused; // VS doesn't like empty structs
#if defined(_MSC_VER) || defined(__clang__)
uint8_t unused; // some compilers refuse empty structs
#endif
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment