https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97894
Bug ID: 97894 Summary: gcc/attr-fnspec.h: 8 * function could be const ? Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- It would be a minor tidyup to mark some member functions in file gcc/attr-fnspec.h as const. Here is some output from from a recent run of the static analyser cppcheck: trunk.git/gcc/attr-fnspec.h:109:3: style:inconclusive: Technically the member function 'attr_fnspec::known_p' can be const. [functionConst] trunk.git/gcc/attr-fnspec.h:227:3: style:inconclusive: Technically the member function 'attr_fnspec::returns_arg' can be const. [functionConst] trunk.git/gcc/attr-fnspec.h:241:3: style:inconclusive: Technically the member function 'attr_fnspec::returns_noalias_p' can be const. [functionConst] trunk.git/gcc/attr-fnspec.h:248:3: style:inconclusive: Technically the member function 'attr_fnspec::global_memory_read_p' can be const. [functionConst] trunk.git/gcc/attr-fnspec.h:256:3: style:inconclusive: Technically the member function 'attr_fnspec::global_memory_written_p' can be const. [functionConst] trunk.git/gcc/attr-fnspec.h:262:3: style:inconclusive: Technically the member function 'attr_fnspec::errno_maybe_written_p' can be const. [functionConst] trunk.git/gcc/attr-fnspec.h:272:3: style:inconclusive: Technically the member function 'attr_fnspec::get_str' can be const. [functionConst] trunk.git/gcc/attr-fnspec.h:77:16: style:inconclusive: Technically the member function 'attr_fnspec::arg_idx' can be const. [functionConst]