Re: [cfe-users] static inline functions in headers and -Wunused-function

2016-01-27 Thread Rainer Gerhards via cfe-users
Thanks David and Richard for the explanations. This really helps. Looks like I need to re-read my language manual ;) Rainer 2016-01-27 18:09 GMT+01:00 Richard via cfe-users : > > [Please reply *only* to the list and do not include my email directly > in the To: or Cc: of your reply; otherwise I

Re: [cfe-users] static inline functions in headers and -Wunused-function

2016-01-27 Thread Richard via cfe-users
[Please reply *only* to the list and do not include my email directly in the To: or Cc: of your reply; otherwise I will not see your reply. Thanks.] In article , David Blaikie via cfe-users writes: > On Wed, Jan 27, 2016 at 3:01 AM, Rainer Gerhards via cfe-users < > cfe-users@lists.llvm.org

Re: [cfe-users] static inline functions in headers and -Wunused-function

2016-01-27 Thread Richard via cfe-users
[Please reply *only* to the list and do not include my email directly in the To: or Cc: of your reply; otherwise I will not see your reply. Thanks.] In article , David Blaikie via cfe-users writes: > On Wed, Jan 27, 2016 at 3:01 AM, Rainer Gerhards via cfe-users < > cfe-users@lists.llvm.org

Re: [cfe-users] static inline functions in headers and -Wunused-function

2016-01-27 Thread David Blaikie via cfe-users
On Wed, Jan 27, 2016 at 3:01 AM, Rainer Gerhards via cfe-users < cfe-users@lists.llvm.org> wrote: > Hi all, > > I try to use -Werror -Wall for my project, which includes > -Wunused-function. > > Unfortunately, I receive a couple of warnings from library header files > which include > > static inli

[cfe-users] static inline functions in headers and -Wunused-function

2016-01-27 Thread Rainer Gerhards via cfe-users
Hi all, I try to use -Werror -Wall for my project, which includes -Wunused-function. Unfortunately, I receive a couple of warnings from library header files which include static inline ... func() { ... } These functions are indeed often unused, but as of my understanding this should be perfectl