- **status**: unassigned --> review
---
** [tickets:#3065] smf: warnings when compiling code with clang**
**Status:** review
**Milestone:** 5.19.10
**Created:** Tue Aug 06, 2019 08:01 AM UTC by Vu Minh Nguyen
**Last Updated:** Fri Aug 09, 2019 03:12 AM UTC
**Owner:** Thanh Nguyen
./src/smf/smfd/SmfUtils.h:65:20: warning: 'smf_valueToString' has C-linkage
specified, but returns user-defined type 'std::string' (aka
'basic_string<char>') which is incompatible with C
[-Wreturn-type-c-linkage]
extern std::string smf_valueToString(SaImmAttrValueT value,
^
./src/smf/smfd/SmfUtils.h:72:26: warning: 'smfStateToString' has C-linkage
specified, but returns user-defined type 'const std::string' (aka 'const
basic_string<char>') which is incompatible with C
[-Wreturn-type-c-linkage]
extern const std::string smfStateToString(const uint32_t& i_stateId,
^
src/smf/smfd/SmfUpgradeCampaign.cc:933:61: warning: adding 'int' to a
string does not append to the string [-Wstring-plus-int]
std::string error = "To many campaign restarts, max " + cnt;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
src/smf/smfd/SmfUpgradeCampaign.cc:933:61: note: use array indexing to
silence this warning
std::string error = "To many campaign restarts, max " + cnt;
^
& [ ]
---
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.
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets