Menu

#6 print_attributes() contains unused parameter

open
nobody
None
5
2009-09-03
2009-09-03
No

When compiling a project using g++ w/ compiler flags -Wall and -Werror, compilation fails for the following function:

template<class OutIt, class Ch> inline OutIt print_attributes(OutIt out, const xml_node<Ch> *node, int flags)

Correction is as simple as removing the unused flags variable name. i.e.:

template<class OutIt, class Ch> inline OutIt print_attributes(OutIt out, const xml_node<Ch> *node, int)

Discussion


Log in to post a comment.