OpenSAF fails to build with GCC 4.9.0, due to a new compiler warning. In one of the files, this warning actually detected a bug in the OpenSAF source code, as can be seen below:
In file included from ncs_sprr.c:37:0: ncs_sprr.c: In function 'ncs_splr_api': ../../../../osaf/libs/core/include/ncssysf_def.h:105:54: error: right-hand operand of comma expression has no effect [-Werror=unused-value] #define m_LEAP_DBG_SINK(r) (TRACE("IN LEAP_DBG_SINK"), r) ^ ncs_sprr.c:46:58: note: in expansion of macro 'm_LEAP_DBG_SINK' #define m_NCS_SPRR_DBG_SINK(x,y) printf("SPRR:%s\n", y),m_LEAP_DBG_SINK(x) ^ ncs_sprr.c:237:9: note: in expansion of macro 'm_NCS_SPRR_DBG_SINK' rc = m_NCS_SPRR_DBG_SINK(NCSCC_RC_DUPLICATE_ENTRY, "SPLR duplication attempted");
changeset: 5236:daa52b67d6f4
branch: opensaf-4.3.x
parent: 5228:25e5968fe242
user: Anders Widell anders.widell@ericsson.com
date: Fri May 09 14:13:35 2014 +0200
summary: osaf: Fix compilation errors when building with GCC 4.9.0 [#883]
changeset: 5237:7e1a6c465d8e
branch: opensaf-4.4.x
parent: 5229:2d7bab281af9
user: Anders Widell anders.widell@ericsson.com
date: Fri May 09 14:14:01 2014 +0200
summary: osaf: Fix compilation errors when building with GCC 4.9.0 [#883]
changeset: 5238:12f1f3265add
tag: tip
parent: 5235:33c2518b37f7
user: Anders Widell anders.widell@ericsson.com
date: Fri May 09 14:14:01 2014 +0200
summary: osaf: Fix compilation errors when building with GCC 4.9.0 [#883]
[staging:daa52b]
[staging:7e1a6c]
[staging:12f1f3]
Related
Tickets:
#883Commit: [12f1f3]
Commit: [7e1a6c]
Commit: [daa52b]