sys/stdio_uart: do not cast function pointer.#10312
sys/stdio_uart: do not cast function pointer.#10312jcarrano wants to merge 1 commit intoRIOT-OS:masterfrom
Conversation
|
@jcarrano Is there a reason for providing a wrapper instead of changing the |
Regarding (2), it's usually innocuous in RISC architectures where the first results are returned in registers, which explains why the code is not blowing up right now. |
b3ff7f1 to
335c6bc
Compare
|
I rebased on top of master and fixed the conflicts. |
There was a function pointer cast in stdio_uart. The warning was being explicitly supressed in the module's makefile. This commit removes the suppression and fixes the warning by providing a wrapper function. The wrapper was already defined in the AT driver, as part of a fix for a similar bug there, so the definition was moved to the isrpipe module, the logic being that using isrpipe in conjunction with a periph uart is a common enough use-case.
|
There are conflicts, I'm not rebasing this again. I give up - fixing bugs is clearly not a priority. |
|
Is rebasing so difficult ? I don't think there are that much conflicts. I'm surprised this PR didn't get much review: it's not a difficult change, 3 reviewers were assigned. |
|
No, it is not difficult, but it is a waste of time to rebase every N months (which shows that there is work being done on that module, just no interest in bug fixes). If anyone is interested on this fix, they can feel free to take over it. |
Contribution description
There was a function pointer cast in stdio_uart. The warning was being explicitly supressed in the module's makefile (see #9121).
This commit removes the suppression and fixes the warning by providing a wrapper function.
The wrapper was already defined in the AT driver (see #9740), as part of a fix for a similar bug there, so the definition was moved to the isrpipe module, the logic being that using isrpipe in conjunction with a periph_uart is a common enough use-case.
Testing procedure
tests/driver_atshould still compile, same asexamples/hello_world.Issues/PRs references
Undoes #9121.