From d02d3d11d4a67b0951e671ff4273bda02594906f Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 28 Jul 2021 09:39:45 +0200 Subject: Fix warning (=error) clang 11.0.1: Different comparison types: Must explicitly declare enum class name --- src/direct_bt/BTGattChar.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src') 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"; -- cgit v1.2.3