diff options
author | Sven Gothel <[email protected]> | 2021-07-28 09:39:45 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-07-28 09:39:45 +0200 |
commit | d02d3d11d4a67b0951e671ff4273bda02594906f (patch) | |
tree | 003d433cd17e1542adba61a3a7b3531bd2e31b49 /src | |
parent | c815474c23b8dde938f2b4fd42985a517a2fb9e3 (diff) |
Fix warning (=error) clang 11.0.1: Different comparison types: Must explicitly declare enum class name
Diffstat (limited to 'src')
-rw-r--r-- | src/direct_bt/BTGattChar.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/direct_bt/BTGattChar.cpp b/src/direct_bt/BTGattChar.cpp index ede637fd..41c93b7f 100644 --- a/src/direct_bt/BTGattChar.cpp +++ b/src/direct_bt/BTGattChar.cpp @@ -42,14 +42,14 @@ using namespace direct_bt; using namespace jau; #define CHAR_DECL_PROPS_ENUM(X) \ - X(Broadcast,broadcast) \ - X(Read,read) \ - X(WriteNoAck,write-without-response) \ - X(WriteWithAck,write) \ - X(Notify,notify) \ - X(Indicate,indicate) \ - X(AuthSignedWrite,authenticated-signed-writes) \ - X(ExtProps,extended-properties) + X(BTGattChar,Broadcast,broadcast) \ + X(BTGattChar,Read,read) \ + X(BTGattChar,WriteNoAck,write-without-response) \ + X(BTGattChar,WriteWithAck,write) \ + X(BTGattChar,Notify,notify) \ + X(BTGattChar,Indicate,indicate) \ + X(BTGattChar,AuthSignedWrite,authenticated-signed-writes) \ + X(BTGattChar,ExtProps,extended-properties) /** "reliable-write" @@ -63,11 +63,11 @@ using namespace jau; "authorize" */ -#define CASE_TO_STRING2(V,S) case V: return #S; +#define CASE2_TO_STRING2(U,V,W) case U::V: return #W; static std::string _getPropertyBitValStr(const BTGattChar::PropertyBitVal prop) noexcept { switch(prop) { - CHAR_DECL_PROPS_ENUM(CASE_TO_STRING2) + CHAR_DECL_PROPS_ENUM(CASE2_TO_STRING2) default: ; // fall through intended } return "Unknown property"; |