This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug objc/77404] Add Wobjc-root-class
- From: "egall at gwmail dot gwu.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 29 Aug 2016 20:26:14 +0000
- Subject: [Bug objc/77404] Add Wobjc-root-class
- Auto-submitted: auto-generated
- References: <bug-77404-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77404
Eric Gallager <egall at gwmail dot gwu.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |egall at gwmail dot gwu.edu
--- Comment #1 from Eric Gallager <egall at gwmail dot gwu.edu> ---
(In reply to Tom de Vries from comment #0)
> clang supports:
> - the objc_root_class attribute, and
> - a warning Wobjc-root-class that warns if a class both:
> - does not have a superclass, and
> - does not have the objc_root_class attribute
>
> gcc:
> - does not support the -Wobjc-root-class warning, and
> - when encountering the objc_root_class attribute, gives an unsupported
> attribute warning.
>
> Is the -Wobjc-root-class warning something we want to have in gcc objc as
> well?
What's the reasoning behind clang having it? Do you have any links to
documentation of the warning?