https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65927
Bug ID: 65927
Summary: cppcheck: bits/locale_facets_nonio.h
(_M_am_pm_format): Assignment of function parameter
has no effect outside the function
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: burnus at gcc dot gnu.org
Target Milestone: ---
cppcheck claims:
[gcc-trunk/include/c++/5.0.0/bits/locale_facets_nonio.h:241]: (warning)
Assignment of function parameter has no effect outside the function. Did you
forget dereferencing it?
That's the code:
void
_M_am_pm_format(const _CharT* __ampm) const
{ __ampm = _M_data->_M_am_pm_format; }