chprintf inline warning

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
Post Reply
User avatar
woodstock
Posts: 7
Joined: Wed Nov 04, 2015 7:06 am

chprintf inline warning

Post by woodstock »

I'm not sure if this issue is specific to GCC or not (although I do know it is the case with some other compilers), but variadic functions cannot be inlined (such as chprintf).

Using the warning option -Winline, I get the following warning message:

Code: Select all

/os/hal/lib/streams/chprintf.h:69:19: warning: function 'chprintf' can never be inlined because it uses variable argument lists [-Winline]

It therefore seems that it might be unnecessary (or even confusing) to include the inline keyword there, if I am correct.

Anyway, it's not a huge issue, but I just thought that I'd point it out anyway. :)
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: chprintf inline warning

Post by Giovanni »

Thanks, I will modify it.

Giovanni
Post Reply