Messages in this thread | | | Date | Wed, 7 Jun 2017 09:41:38 -0700 | From | Matthias Kaehlcke <> | Subject | Re: [patch] compiler, clang: move inline definition to compiler-gcc.h |
| |
El Tue, Jun 06, 2017 at 10:56:49PM -0700 David Rientjes ha dit:
> The motivation of commit abb2ea7dfd82 ("compiler, clang: suppress warning > for unused static inline functions") is to suppress clang's warnings about > unused static inline functions. > > Clang defines __GNUC__ so it inherits all of compiler-gcc.h as well, so > the redefinition of `inline' ends up overriding the definition in > compiler-gcc.h. > > Simply annotate all inline functions as __attribute__((unused)). It's > necessary to suppress the warning for clang and is implicit with gcc. > > Reported-by: Matthias Kaehlcke <mka@chromium.org> > Signed-off-by: David Rientjes <rientjes@google.com> > ---
Tested-by: Matthias Kaehlcke <mka@chromium.org>
| |