[PATCH] QPID Fixed Compile Error for double const


Philip Preston
 

With the macros for Vector of types, with the const char being passed into the macro, a further const is on the type in the macros, got compiler error in Clang for double const

Signed-off-by: Phil Preston <philippreston@mac.com>
---
mama/c_cpp/src/c/payload/qpidmsg/field.c | 2 +-
mama/c_cpp/src/c/payload/qpidmsg/payload.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mama/c_cpp/src/c/payload/qpidmsg/field.c b/mama/c_cpp/src/c/payload/qpidmsg/field.c
index ae988e9..3429838 100644
--- a/mama/c_cpp/src/c/payload/qpidmsg/field.c
+++ b/mama/c_cpp/src/c/payload/qpidmsg/field.c
@@ -1238,7 +1238,7 @@ qpidmsgFieldPayload_getAsString (const msgFieldPayload field,
}
case MAMA_FIELD_TYPE_VECTOR_STRING:
{
- EXPAND_PRINT_VECTOR_MACROS (const char*, String, "%s", const char*);
+ EXPAND_PRINT_VECTOR_MACROS (char*, String, "%s", const char*);
break;
}
case MAMA_FIELD_TYPE_VECTOR_U8:
diff --git a/mama/c_cpp/src/c/payload/qpidmsg/payload.c b/mama/c_cpp/src/c/payload/qpidmsg/payload.c
index 0418305..dc4cb24 100644
--- a/mama/c_cpp/src/c/payload/qpidmsg/payload.c
+++ b/mama/c_cpp/src/c/payload/qpidmsg/payload.c
@@ -3767,7 +3767,7 @@ qpidmsgPayloadImpl_addFieldToPayload (msgPayload msg,
ADD_VECTOR_FIELD_VALUE_TO_MESSAGE(F64, mama_f64_t);
break;
case MAMA_FIELD_TYPE_VECTOR_STRING:
- ADD_VECTOR_FIELD_VALUE_TO_MESSAGE(String, const char*);
+ ADD_VECTOR_FIELD_VALUE_TO_MESSAGE(String, char*);
break;
case MAMA_FIELD_TYPE_VECTOR_MSG:
{
--
2.3.2 (Apple Git-55)