Repository navigation
Conversation
Use __extension__ on g++/clang++ to fix this g++ warning on
Include/object.h:
error: ISO C++ prohibits anonymous structs [-Wpedantic]
|
The change should be backported manually to 3.14 which doesn't have |
|
Without this change, two C++ tests of test_cext fails on OpenIndiana with g++ 14.3.0. With this change, test_cext pass on the same machine. |
|
This change is needed on OpenIndiana where |
@vstinner Isn't this a bug in OpenIndiana (illumos) then? If so, it should be fixed there... |
|
This is related illumos bug report: https://www.illumos.org/issues/14920 |
|
... and because of this: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57025#c13 I think this PR makes sense. I'm just testing this change with Python 3.15.1 on OpenIndiana and I'll report back how it went. |
|
I can confirm that this PR fixes the |
|
I think we want a more robust approach here, given the comment https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57025#c4:
Let me think about this a bit. |
|
Before my change, With my change,
Well, my change fix this exact issue. |
This comment was marked as outdated.
This comment was marked as outdated.
|
Correction: turns out my other PR probably won't fix this issue -- that's about the |
|
🤖 New build scheduled with the buildbot fleet by @encukou for commit 4fe34f2 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F160332%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
|
Correction correction: Apparently my other PR will fix the issue, by coincidence. If not we'll work on top of it. |
Use
__extension__on g++/clang++ to fix this g++ warning on Include/object.h: