changeset:   7447:8f0b8473b8fc
branch:      opensaf-4.6.x
parent:      7443:efa10f74060f
user:        Anders Widell <[email protected]>
date:        Mon Apr 11 10:42:00 2016 +0200
summary:     log: Ensure output parameter is always initialized by 
fileclose_h() [#1743]

changeset:   7448:7daa5fdf557c
branch:      opensaf-4.7.x
parent:      7444:140fb8a4ee6f
user:        Anders Widell <[email protected]>
date:        Mon Apr 11 10:42:00 2016 +0200
summary:     log: Ensure output parameter is always initialized by 
fileclose_h() [#1743]

changeset:   7449:75325f5b6194
branch:      opensaf-5.0.x
parent:      7445:77a0f4135508
user:        Anders Widell <[email protected]>
date:        Mon Apr 11 10:55:08 2016 +0200
summary:     log: Ensure output parameter is always initialized by 
fileclose_h() [#1743]

changeset:   7450:1f9920a8958b
branch:      opensaf-5.0.x
user:        Anders Widell <[email protected]>
date:        Mon Apr 11 10:55:09 2016 +0200
summary:     logtest: Remove dead code [#1743]

changeset:   7451:794ef2b78564
parent:      7446:833a967c3bea
user:        Anders Widell <[email protected]>
date:        Mon Apr 11 10:55:08 2016 +0200
summary:     log: Ensure output parameter is always initialized by 
fileclose_h() [#1743]

changeset:   7452:a22cc7b62aff
user:        Anders Widell <[email protected]>
date:        Mon Apr 11 10:55:09 2016 +0200
summary:     logtest: Remove dead code [#1743]

[staging:8f0b84]
[staging:7daa5f]
[staging:75325f]
[staging:1f9920]
[staging:794ef2]
[staging:a22cc7]



---

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

**Status:** review
**Milestone:** 4.6.2
**Created:** Fri Apr 08, 2016 12:34 PM UTC by Anders Widell
**Last Updated:** Mon Apr 11, 2016 08:39 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 [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.
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to