public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/54578] New: [OOP] -Wunused-function warnings for __copy functions
@ 2012-09-14  7:58 burnus at gcc dot gnu.org
  2013-08-19 21:07 ` [Bug fortran/54578] " janus at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: burnus at gcc dot gnu.org @ 2012-09-14  7:58 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug fortran/54578] [OOP] -Wunused-function warnings for __copy functions
  2012-09-14  7:58 [Bug fortran/54578] New: [OOP] -Wunused-function warnings for __copy functions burnus at gcc dot gnu.org
@ 2013-08-19 21:07 ` janus at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: janus at gcc dot gnu.org @ 2013-08-19 21:07 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54578

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |janus at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #1 from janus at gcc dot gnu.org ---
I think this may have been fixed by r192620.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-19 21:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-14  7:58 [Bug fortran/54578] New: [OOP] -Wunused-function warnings for __copy functions burnus at gcc dot gnu.org
2013-08-19 21:07 ` [Bug fortran/54578] " janus at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).