- **status**: accepted --> review


---

** [tickets:#883] osaf: Build fails with GCC 4.9.0**

**Status:** review
**Milestone:** 4.3.3
**Created:** Mon May 05, 2014 08:01 AM UTC by Anders Widell
**Last Updated:** Mon May 05, 2014 08:01 AM UTC
**Owner:** Anders Widell

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");



---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software faster
• Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to