- **status**: review --> fixed
- **Comment**:

changeset:   7455:378dc641beaf
branch:      opensaf-4.6.x
parent:      7447:8f0b8473b8fc
user:        Anders Widell <a...@..com>
date:        Mon Apr 11 13:07:12 2016 +0200
summary:     immtools: Correct code indentation [#1743]

changeset:   7456:acf5f6702baa
branch:      opensaf-4.6.x
user:        Anders Widell <a...@..com>
date:        Mon Apr 11 13:07:19 2016 +0200
summary:     immtest: Remove dead code [#1743]

changeset:   7457:43ceee49a385
branch:      opensaf-4.7.x
parent:      7448:7daa5fdf557c
user:        Anders Widell <a...@..com>
date:        Mon Apr 11 13:07:38 2016 +0200
summary:     immtools: Correct code indentation [#1743]

changeset:   7458:f4b12405d979
branch:      opensaf-4.7.x
user:        Anders Widell <a...@..com>
date:        Mon Apr 11 13:07:19 2016 +0200
summary:     immtest: Remove dead code [#1743]

changeset:   7459:4b926e9740be
branch:      opensaf-5.0.x
parent:      7450:1f9920a8958b
user:        Anders Widell <a...@..com>
date:        Mon Apr 11 13:07:38 2016 +0200
summary:     immtools: Correct code indentation [#1743]

changeset:   7460:1422f9a6c18f
branch:      opensaf-5.0.x
user:        Anders Widell <a...@..com>
date:        Mon Apr 11 13:07:19 2016 +0200
summary:     immtest: Remove dead code [#1743]

changeset:   7461:75d65721f4c5
parent:      7454:d7f4957db2c3
user:        Anders Widell <a...@..com>
date:        Mon Apr 11 13:07:38 2016 +0200
summary:     immtools: Correct code indentation [#1743]

changeset:   7462:0f5b04d5f67e
user:        Anders Widell <a...@..com>
date:        Mon Apr 11 13:07:19 2016 +0200
summary:     immtest: Remove dead code [#1743]

[staging:378dc6]
[staging:acf5f6]
[staging:43ceee]
[staging:f4b124]
[staging:4b926e]
[staging:1422f9]
[staging:75d657]
[staging:0f5b04]




---

** [tickets:#1743] osaf: Build fails with GCC version 6**

**Status:** fixed
**Milestone:** 4.6.2
**Created:** Fri Apr 08, 2016 12:34 PM UTC by Anders Widell
**Last Updated:** Mon Apr 11, 2016 09:02 AM UTC
**Owner:** Anders Widell


The following build errors were observed with GCC version 6 and optimization 
level -O3:

~~~~
imm_dumper.cc: In function 'int main(int, char**)':
imm_dumper.cc:149:5: error: this 'if' clause does not guard... 
[-Werror=misleading-indentation]
     if ((c = getopt_long(argc, argv, "hp:x:c:a:", long_options, NULL)) == -1)
     ^~
imm_dumper.cc:152:13: note: ...this statement, but the latter is misleadingly 
indented as if it is guarded by the 'if'
             switch (c) {
             ^~~~~~
~~~~


~~~~
compdb.cc: In function 'int comp_init(AVND_COMP*, const SaImmAttrValuesT_2**)':
compdb.cc:1579:2: error: this 'if' clause does not guard... 
[-Werror=misleading-indentation]
  if 
(immutil_getAttr(const_cast<SaImmAttrNameT>("saAmfCompCSISetCallbackTimeout"), 
attributes,
  ^~
compdb.cc:1582:3: note: ...this statement, but the latter is misleadingly 
indented as if it is guarded by the 'if'
   comp->use_comptype_attr->set(CsiSetCallbackTimeout);
   ^~~~
compdb.cc:1584:2: error: this 'if' clause does not guard... 
[-Werror=misleading-indentation]
  if 
(immutil_getAttr(const_cast<SaImmAttrNameT>("saAmfCompCSIRmvCallbackTimeout"), 
attributes,
  ^~
compdb.cc:1587:3: note: ...this statement, but the latter is misleadingly 
indented as if it is guarded by the 'if'
   comp->use_comptype_attr->set(CsiRemoveCallbackTimeout);
   ^~~~
~~~~


~~~~
tet_Log_recov.c:76:18: error: 'wr_delay' defined but not used 
[-Werror=unused-const-variable=]
 static const int wr_delay = 100*1000; /* 100 ms */
                  ^~~~~~~~
~~~~


~~~~
test_saImmOmCcbObjectCreate_2.c:20:30: error: 'nonExistingClassName' defined 
but not used [-Werror=unused-const-variable=]
 static const SaImmClassNameT nonExistingClassName = (SaImmClassNameT) __FILE__;
                              ^~~~~~~~~~~~~~~~~~~~
~~~~


~~~~
In file included from ../../../../../osaf/libs/core/include/ncs_osprm.h:32:0,
                 from ../../../../../osaf/libs/core/include/ncs_ubaid.h:45,
                 from ../../../../../osaf/libs/core/include/mbcsv_papi.h:29,
                 from lgs.h:30,
                 from lgs_stream.cc:29:
../../../../../osaf/libs/core/common/include/logtrace.h: In function 'int 
log_stream_file_close(log_stream_t*)':
../../../../../osaf/libs/core/common/include/logtrace.h:131:46: error: 
'errno_ret' may be used uninitialized in this function 
[-Werror=maybe-uninitialized]
 #define LOG_NO(format, args...) _logtrace_log(__FILE__, __LINE__, LOG_NOTICE, 
(format), ##args)
                                              ^
lgs_stream.cc:978:6: note: 'errno_ret' was declared here
  int errno_ret;
      ^~~~~~~~~
~~~~



---

Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net 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.
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to