This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/66918] Disable "inline function declared but never defined" warning


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66918

--- Comment #4 from Eugene Zelenko <eugene.zelenko at gmail dot com> ---
(In reply to Manuel LÃpez-IbÃÃez from comment #3)
> Does Clang have an option for this? GCC could use the same name.
> 
> (The same warning exists in the C++ FE, thus it should be controlled by the
> same option).

I tried small example with Clang 3.7 https://gcc.godbolt.org and it looks like
it doesn't have such warning (I used -Weverything -std=C++11 and C++14).

GCC already has -Wunused-function and it seems reasonable to extend it to
inline functions.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]