- **status**: accepted --> review
---
** [tickets:#1743] osaf: Build fails with GCC version 6**
**Status:** review
**Milestone:** 5.0.RC1
**Created:** Fri Apr 08, 2016 12:34 PM UTC by Anders Widell
**Last Updated:** Fri Apr 08, 2016 12:34 PM 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.------------------------------------------------------------------------------
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets