[Bug fortran/54578] New: [OOP] -Wunused-function warnings for __copy functions
burnus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Sep 14 07:58:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54578
Bug #: 54578
Summary: [OOP] -Wunused-function warnings for __copy functions
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: burnus@gcc.gnu.org
Compiling the test case at PR 46897 with -Wall shows the bogus warning:
warning: ‘__copy_component_parent_child_module_Child’ defined but not used
[-Wunused-function]
I wonder whether one should use "!sym->attr.artificial" to silence the warning
or whether some other approach is better.
See also similar warnings (but for user code, where the function is actually
used) at PR 54221.
More information about the Gcc-bugs
mailing list