[PATCH 1/5] [MAMAC] FIx Nullcheck macro warning
Ian Bell <IBell@...>
Testing Running on RH5 gcc 4.1 shows warnings pre patch, missing after patch
From 0e8aa6503fa2861fa4a03fc84888408d09b65127 Mon Sep 17 00:00:00 2001 Message-Id: <0e8aa6503fa2861fa4a03fc84888408d09b65127.1403606176.git.ibell@...> From: Ian Bell <ibell@...> Date: Mon, 23 Jun 2014 15:56:47 +0100 Subject: [PATCH 1/5] [MAMAC] FIx Nullcheck macro warning
Modified the NULLCHECK macro to remove a warning seen on some versions of gcc
Signed-off-by: Ian Bell <ibell@...> --- mama/c_cpp/src/c/mama/status.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mama/c_cpp/src/c/mama/status.h b/mama/c_cpp/src/c/mama/status.h index 37abb92..79bb1db 100644 --- a/mama/c_cpp/src/c/mama/status.h +++ b/mama/c_cpp/src/c/mama/status.h @@ -190,8 +190,8 @@ mamaStatus_stringForStatus (mama_status status); #if defined(NDEBUG) && !defined(WITH_UNITTESTS) -#define NULLARG_STATUS_CHECK -#define NULLARG_STATUS_CHECK_STR +#define NULLARG_STATUS_CHECK(x) +#define NULLARG_STATUS_CHECK_STR(x) #else -- 1.8.4.msysgit.0
This message may contain confidential information and is intended for specific recipients unless explicitly noted otherwise. If you have reason to believe you are not an intended recipient of this message, please delete it and notify the sender. This message may not represent the opinion of IntercontinentalExchange Group, Inc. (ICE), NYSE Euronext or any of their subsidiaries or affiliates, and does not constitute a contract or guarantee. Unencrypted electronic mail is not secure and the recipient of this message is expected to provide safeguards from viruses and pursue alternate means of communication where privacy or a binding message is desired. |
|
Damian Maguire <DMaguire@...>
Cheers Ian, raised this one in Bugzilla as BZ138.
Cheers,
D
From: Ian Bell <IBell@...>
Date: Tuesday, June 24, 2014 11:39 AM To: "openmama-dev@..." <openmama-dev@...> Subject: [Openmama-dev] [PATCH 1/5] [MAMAC] FIx Nullcheck macro warning Testing Running on RH5 gcc 4.1 shows warnings pre patch, missing after patch
From 0e8aa6503fa2861fa4a03fc84888408d09b65127 Mon Sep 17 00:00:00 2001 Message-Id: <0e8aa6503fa2861fa4a03fc84888408d09b65127.1403606176.git.ibell@...> From: Ian Bell <ibell@...> Date: Mon, 23 Jun 2014 15:56:47 +0100 Subject: [PATCH 1/5] [MAMAC] FIx Nullcheck macro warning
Modified the NULLCHECK macro to remove a warning seen on some versions of gcc
Signed-off-by: Ian Bell <ibell@...> --- mama/c_cpp/src/c/mama/status.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mama/c_cpp/src/c/mama/status.h b/mama/c_cpp/src/c/mama/status.h index 37abb92..79bb1db 100644 --- a/mama/c_cpp/src/c/mama/status.h +++ b/mama/c_cpp/src/c/mama/status.h @@ -190,8 +190,8 @@ mamaStatus_stringForStatus (mama_status status); #if defined(NDEBUG) && !defined(WITH_UNITTESTS) -#define NULLARG_STATUS_CHECK -#define NULLARG_STATUS_CHECK_STR +#define NULLARG_STATUS_CHECK(x) +#define NULLARG_STATUS_CHECK_STR(x) #else -- 1.8.4.msysgit.0
This message may contain confidential information and is intended for specific recipients unless explicitly noted otherwise. If you have reason to believe you are not an intended recipient of this message, please delete it and notify the sender. This message may not represent the opinion of IntercontinentalExchange Group, Inc. (ICE), NYSE Euronext or any of their subsidiaries or affiliates, and does not constitute a contract or guarantee. Unencrypted electronic mail is not secure and the recipient of this message is expected to provide safeguards from viruses and pursue alternate means of communication where privacy or a binding message is desired. This message may contain confidential information and is intended for specific recipients unless explicitly noted otherwise. If you have reason to believe you are not an intended recipient of this message, please delete it and notify the sender. This message may not represent the opinion of Intercontinental Exchange, Inc. (ICE), Euronext or any of their subsidiaries or affiliates, and does not constitute a contract or guarantee. Unencrypted electronic mail is not secure and the recipient of this message is expected to provide safeguards from viruses and pursue alternate means of communication where privacy or a binding message is desired. |
|