Hello Tony,
Tony Pavlov via Sdcc-user schreef op 2022-07-22 16:24:
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
Thanks for elaborating. I think those are pedantic warnings which I
would normally suppress with --less-pedantic on the command line.
(Btw. that is the same as using --disable-warning on all pedantic
warnings.) Would you really want to switch these off and back on for
selective parts of your code?
Maarten
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user