Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1650710

Re: [patch] compiler, clang: suppress warning for unused static inline functions

From Matthias Kaehlcke <mka@chromium.org>
Newsgroups linux.kernel
Subject Re: [patch] compiler, clang: suppress warning for unused static inline functions
Date 2017-05-25 20:00 +0200
Message-ID <tL5df-2O0-3@gated-at.bofh.it> (permalink)
References <tKLHA-7u7-15@gated-at.bofh.it> <tKM0V-7Bg-1@gated-at.bofh.it> <tKTYt-4c9-7@gated-at.bofh.it> <tL3Et-1ZE-13@gated-at.bofh.it> <tL47w-29T-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Joe,

El Thu, May 25, 2017 at 09:48:53AM -0700 Joe Perches ha dit:

> On Thu, 2017-05-25 at 09:14 -0700, Matthias Kaehlcke wrote:
> > clang doesn't raise
> > warnings about unused static inline functions in headers.
> 
> Is any "#include" file a "header" to clang or only "*.h" files?
> 
> For instance:
> 
> The kernel has ~500 .c files that other .c files #include.
> Are unused inline functions in those .c files reported?

Any "#include" file is a "header" to clang, no warnings are generated
for unused inline functions in included .c files.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [patch] compiler, clang: suppress warning for unused static  inline functions Ingo Molnar <mingo@kernel.org> - 2017-05-25 08:00 +0200
  Re: [patch] compiler, clang: suppress warning for unused static  inline functions Matthias Kaehlcke <mka@chromium.org> - 2017-05-25 18:20 +0200
    Re: [patch] compiler, clang: suppress warning for unused static  inline functions Joe Perches <joe@perches.com> - 2017-05-25 18:50 +0200
      Re: [patch] compiler, clang: suppress warning for unused static  inline functions Matthias Kaehlcke <mka@chromium.org> - 2017-05-25 20:00 +0200

csiph-web