---

** [tickets:#1340] osaf: Build fails with GCC 5.1.0**

**Status:** accepted
**Milestone:** 4.5.2
**Created:** Fri Apr 24, 2015 11:37 AM UTC by Anders Widell
**Last Updated:** Fri Apr 24, 2015 11:37 AM UTC
**Owner:** Anders Widell

OpenSAF fails to build with GCC 5.1.0, due to new compiler warnings:

    imma_proc.c: In function 'imma_proc_increment_pending_reply':
    imma_proc.c:3324:28: error: comparison of constant '255' with boolean 
expression is always true [-Werror=bool-compare]
      if (cl_node->replyPending < 0xff) {
                                ^
    imma_proc.c: In function 'imma_proc_decrement_pending_reply':
    imma_proc.c:3337:29: error: comparison of constant '255' with boolean 
expression is always true [-Werror=bool-compare]
       if (cl_node->replyPending < 0xff) {
                                 ^
    
    
    susm.cc: In function 'uint32_t avnd_evt_avd_su_pres_evh(AVND_CB*, 
AVND_EVT*)':
    susm.cc:1237:26: error: switch condition has type bool [-Werror=switch-bool]
      switch (info->term_state) {
                              ^
    
    
    mds_dt_tipc.c: In function 'mdtm_tipc_init':
    mds_dt_tipc.c:245:28: error: comparison of constant '2' with boolean 
expression is always false [-Werror=bool-compare]
      if (mds_use_network_order == NCSCC_RC_FAILURE) {
                                ^
    
    
    plms_hsm.c: In function 'hsm_discover_and_dispatch':
    plms_hsm.c:685:20: error: unused variable 'my_entity_path' 
[-Werror=unused-variable]
      SaHpiEntityPathT  my_entity_path;
                        ^
    plms_hsm.c:684:20: error: unused variable 'hpirc' [-Werror=unused-variable]
      SaErrorT          hpirc = SA_OK;
                        ^



---

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.
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to