|
From: Tony P. <un...@ma...> - 2022-07-22 14:24:14
|
Hello Maarten,
MB> I don't know which are "the inline functions" nor which are "those warnings".
MB> Why not just fix what these warnings complain about?
i am not a true C developer, but:
inline uint8_t inline_some(uint8_t some) {
return (some) ? do_some_thing(some) : 0;
}
inline_some(0); // warning
for (uint8_t i = 0; i != 10; i++) inline_some(i); // no warning
--
Best regards,
Tony mailto:un...@ma...
|