Fixes a warning when building btree with cmake - #19644
Conversation
de7c71e to
53883f4
Compare
|
Thanks for the PR! While you're at it, you may also want to add micropython/examples/natmod/btree/Makefile Lines 18 to 19 in 1c3c201 BTree's codebase is still clinging onto old standards and newer compilers tend to like that kind of stuff less and less as time goes on (there's also a PR for enabling compilation with MUSL, but that's still in the review queue). |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #19644 +/- ##
==========================================
- Coverage 98.58% 98.55% -0.04%
==========================================
Files 182 182
Lines 23322 23322
Branches 5 5
==========================================
- Hits 22993 22986 -7
- Misses 328 335 +7
Partials 1 1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Code size report: |
|
Then it would be probably better to use the exact same flags as we do in extmod/extmod.mk: Then both Agree? |
|
That makes sense, feel free to update the PR (keeping it a single commit if possible). |
With gcc 16.2.0, warnings about old-style function definitions popped up when building with cmake. This fix suppresses these warnings for gcc, and reportedly also helps with certain versions of clang as well. See also micropython#19644. Signed-off-by: Stefan Kratochwil <Kratochwil-LA@gmx.de>
53883f4 to
7193279
Compare
|
Done. Please double-check with your clang setup if possible, I only verified the gcc build. We got a failed test for qemu_arm (thread/stress_heap.py), currently trying to reproduce this locally. |
|
I am a bit time constrained right now, but as far as I can see the qemu_arm build does not even use cmake. Is this maybe a flaky test @agatti ? |
|
I'd say the changes look good. For the rest, coverage check is obviously mistaken here (that happens sometimes) and that specific test for |
The extmod.mk suppresses some more warnings. Those ones are not applied since they do not pop up with gcc 16.2.0.
Summary
Fixes #19643
Testing
Building RP_PICO_W with this fix does no longer yield warnings about old-style function definitions.
Generative AI
I did not use generative AI tools when creating this PR.